Class CellPositionValidator
Represents cell position validator.
Inheritance
Namespace: Telerik.Windows.Controls.Spreadsheet.Worksheets
Assembly: Telerik.Windows.Controls.Spreadsheet.dll
Syntax
public class CellPositionValidator : Object
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
Telerik.Windows.Documents.Spreadsheet.Model.Worksheet
The worksheet. |
WorksheetEditor
Gets the worksheet editor.
Declaration
public RadWorksheetEditor WorksheetEditor { get; }
Property Value
RadWorksheetEditor
The worksheet editor. |
Methods
EnsureValidCellPosition(CellIndex, CellIndex, Nullable<Boolean>)
Ensures the cell position is valid.
Declaration
public CellIndex EnsureValidCellPosition(CellIndex oldCellIndex, CellIndex newCellIndex, Nullable<bool> isVerticalMove)
Parameters
Telerik.Windows.Documents.Spreadsheet.Model.CellIndex
oldCellIndex
Old index of the cell. |
Telerik.Windows.Documents.Spreadsheet.Model.CellIndex
newCellIndex
New index of the cell. |
System.Nullable<System.Boolean>
isVerticalMove
The is vertical move. |
Returns
Telerik.Windows.Documents.Spreadsheet.Model.CellIndex
The validated cell index. |
ExpandRangeRespectingMergedCells(CellRange)
Expands the range respecting merged cells.
Declaration
public CellRange ExpandRangeRespectingMergedCells(CellRange cellRange)
Parameters
Telerik.Windows.Documents.Spreadsheet.Model.CellRange
cellRange
The cell range. |
Returns
Telerik.Windows.Documents.Spreadsheet.Model.CellRange
The expanded cell range. |