Class
CellPositionValidator

Represents cell position validator.

Definition

Namespace:Telerik.Windows.Controls.Spreadsheet.Worksheets

Assembly:Telerik.Windows.Controls.Spreadsheet.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

Worksheet

The worksheet.

WorksheetEditor

Gets the worksheet editor.

Declaration

cs-api-definition
public RadWorksheetEditor WorksheetEditor { get; }

Property Value

RadWorksheetEditor

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

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

cs-api-definition
public CellRange ExpandRangeRespectingMergedCells(CellRange cellRange)

Parameters

cellRange

CellRange

The cell range.

Returns

CellRange

The expanded cell range.