New to Telerik UI for WinFormsStart a free 30-day trial

Represents cell position validator.

Definition

Namespace:Telerik.WinForms.Controls.Spreadsheet.Worksheets

Assembly:Telerik.WinControls.RadSpreadsheet.dll

Syntax:

C#
public class CellPositionValidator

Inheritance: objectCellPositionValidator

Constructors

Initializes a new instance of the CellPositionValidator class.

C#
public CellPositionValidator()

Properties

Gets the worksheet.

C#
public Worksheet Worksheet { get; }
Property Value:

The worksheet.

Gets the worksheet editor.

C#
public RadWorksheetEditor WorksheetEditor { get; }
Property Value:

The worksheet editor.

Methods

Ensures the cell position is valid.

C#
public CellIndex EnsureValidCellPosition(CellIndex oldCellIndex, CellIndex newCellIndex, bool? isVerticalMove)
Parameters:oldCellIndexCellIndex

Old index of the cell.

newCellIndexCellIndex

New 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)
Parameters:cellRangeCellRange

The cell range.

Returns:

CellRange

The expanded cell range.