92 lines
1.2 KiB
C#
92 lines
1.2 KiB
C#
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;
|
|
}
|
|
}
|