ClassCellPositionValidator
Represents cell position validator.
Definition
Namespace:Telerik.Windows.Controls.Spreadsheet.Worksheets
Assembly:Telerik.Windows.Controls.Spreadsheet.dll
Syntax:
public class CellPositionValidator
Inheritance: objectCellPositionValidator
Constructors
CellPositionValidator()
Initializes a new instance of the CellPositionValidator class.
Declaration
public CellPositionValidator()
Properties
Worksheet
Gets the worksheet.
Declaration
public Worksheet Worksheet { get; }
Property Value
Worksheet
The worksheet.
WorksheetEditor
Gets the worksheet editor.
Declaration
public RadWorksheetEditor WorksheetEditor { get; }
Property Value
The worksheet editor.
Methods
EnsureValidCellPosition(CellIndex, CellIndex, bool?)
Ensures the cell position is valid.
Declaration
public CellIndex EnsureValidCellPosition(CellIndex oldCellIndex, CellIndex newCellIndex, bool? isVerticalMove)
Parameters
oldCellIndex
CellIndex
Old index of the cell.
newCellIndex
CellIndex
New index of the cell.
isVerticalMove
bool?
The is vertical move.
Returns
CellIndex
The validated cell index.
ExpandRangeRespectingMergedCells(CellRange)
Expands the range respecting merged cells.
Declaration
public CellRange ExpandRangeRespectingMergedCells(CellRange cellRange)
Parameters
cellRange
CellRange
The cell range.
Returns
CellRange
The expanded cell range.