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

Represents the cell position.

Definition

Namespace:Telerik.WinForms.Controls.Spreadsheet.Worksheets

Assembly:Telerik.WinControls.RadSpreadsheet.dll

Syntax:

C#
public class CellPosition : CellIndexBase, IComparable<CellIndexBase>

Inheritance: objectCellIndexBaseCellPosition

Implements: IComparable<CellIndexBase>

Inherited Members CellIndexBase.ToString()CellIndexBase.Equals(object)CellIndexBase.GetHashCode()CellIndexBase.CompareTo(CellIndexBase)

Constructors

Initializes a new instance of the CellPosition class.

C#
public CellPosition()

Initializes a new instance of the CellPosition class.

C#
public CellPosition(CellPositionValidator cellPositionValidator)
Parameters:cellPositionValidatorCellPositionValidator

The cell position validator.

Properties

Gets the index of the cell.

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

The index of the cell.

Gets the index of the column.

C#
public override int ColumnIndex { get; }
Property Value:

The index of the column.

Overrides: CellIndexBase.ColumnIndex

Gets the index of the row.

C#
public override int RowIndex { get; }
Property Value:

The index of the row.

Overrides: CellIndexBase.RowIndex

Methods

Begins the update.

C#
public void BeginUpdate()

Ends the update.

C#
public void EndUpdate()

Moves to column end.

C#
public bool MoveToColumnEnd()
Returns:

bool

True if succeed..

Moves to column start.

C#
public bool MoveToColumnStart()
Returns:

bool

True if succeed..

Moves to first cell.

C#
public bool MoveToFirstCell()
Returns:

bool

True if succeed.

Moves to index.

C#
public bool MoveToIndex(CellIndex cellIndex)
Parameters:cellIndexCellIndex

Index of the cell.

Returns:

bool

True if succeed.

Moves to index.

C#
public bool MoveToIndex(int rowIndex, int columnIndex)
Parameters:rowIndexint

Index of the row.

columnIndexint

Index of the column.

Returns:

bool

True if succeed.

Moves to next column.

C#
public bool MoveToNextColumn(bool isSelectionInProgress = false)
Parameters:isSelectionInProgressboolReturns:

bool

True if succeed.

Moves to next row.

C#
public bool MoveToNextRow(bool isSelectionInProgress = false)
Parameters:isSelectionInProgressboolReturns:

bool

True if succeed.

Moves to position.

C#
public bool MoveToPosition(CellPosition position)
Parameters:positionCellPosition

The position.

Returns:

bool

True if succeed.

Moves to previous column.

C#
public bool MoveToPreviousColumn(bool isSelectionInProgress = false)
Parameters:isSelectionInProgressboolReturns:

bool

True if succeed.

Moves to previous row.

C#
public bool MoveToPreviousRow(bool isSelectionInProgress = false)
Parameters:isSelectionInProgressboolReturns:

bool

True if succeed.

Moves to row end.

C#
public bool MoveToRowEnd()
Returns:

bool

True if succeed..

Moves to row start.

C#
public bool MoveToRowStart()
Returns:

bool

True if succeed..

Raises the event.

C#
protected virtual void OnPositionChanged()

Raises the event.

C#
protected virtual void OnPositionChanging(PositionChangingEventArgs args)
Parameters:argsPositionChangingEventArgs

The PositionChangingEventArgs instance containing the event data.

Raises the event.

C#
protected virtual void OnPositionChangingCanceled()

Expand the selection to the current cell range.

C#
public bool SelectCurrentRegion()
Returns:

bool

Events

Occurs when the position is changed.

C#
public event EventHandler PositionChanged

Occurs when the position is changing.

C#
public event EventHandler<PositionChangingEventArgs> PositionChanging

Occurs when the position changing is canceled.

C#
public event EventHandler PositionChangingCanceled