修复边框渲染与合并单元格的问题

This commit is contained in:
2026-07-29 11:32:53 +08:00
parent 2fb8af52a6
commit 5917c0361b
7 changed files with 185 additions and 139 deletions
@@ -80,6 +80,17 @@ namespace XericUI.XTable.Core
NotifyChanged();
}
/// <summary>一次性设置选区端点;仅在值变化时通知。</summary>
public void SetEndpoints(int startRow, int startCol, int endRow, int endCol)
{
if (StartRow == startRow && StartCol == startCol && EndRow == endRow && EndCol == endCol) return;
StartRow = startRow;
StartCol = startCol;
EndRow = endRow;
EndCol = endCol;
NotifyChanged();
}
/// <summary>
/// 扩展多选范围到目标格(保持原有锚点)
/// </summary>