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