CPF/CPF.ReoGrid/Events/BeforeSelectionChangeEventArgs.cs

92 lines
1.2 KiB
C#
Raw Normal View History

2024-06-24 10:15:59 +08:00
using System;
namespace CPF.ReoGrid.Events
{
public class BeforeSelectionChangeEventArgs : EventArgs
{
public CellPosition SelectionStart
{
get
{
return this.selectionStart;
}
set
{
this.selectionStart = value;
}
}
public CellPosition SelectionEnd
{
get
{
return this.selectionEnd;
}
set
{
this.selectionEnd = value;
}
}
public int StartRow
{
get
{
return this.selectionStart.Row;
}
set
{
this.selectionStart.Row = value;
}
}
public int StartCol
{
get
{
return this.selectionStart.Col;
}
set
{
this.selectionStart.Col = value;
}
}
public int EndRow
{
get
{
return this.selectionEnd.Row;
}
set
{
this.selectionEnd.Row = value;
}
}
public int EndCol
{
get
{
return this.selectionEnd.Col;
}
set
{
this.selectionEnd.Col = value;
}
}
public bool IsCancelled { get; set; }
public BeforeSelectionChangeEventArgs(CellPosition selectionStart, CellPosition selectionEnd)
{
this.SelectionStart = selectionStart;
this.SelectionEnd = selectionEnd;
}
private CellPosition selectionStart;
private CellPosition selectionEnd;
}
}