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