ClassCellPosition
Represents the cell position.
Definition
Namespace:Telerik.Windows.Controls.Spreadsheet.Worksheets
Assembly:Telerik.Windows.Controls.Spreadsheet.dll
Syntax:
public class CellPosition : CellIndexBase
Inheritance: objectCellPosition
Constructors
CellPosition()
Initializes a new instance of the CellPosition class.
Declaration
public CellPosition()
CellPosition(CellPositionValidator)
Initializes a new instance of the CellPosition class.
Declaration
public CellPosition(CellPositionValidator cellPositionValidator)
Parameters
cellPositionValidator
The cell position validator.
Properties
CellIndex
Gets the index of the cell.
Declaration
public CellIndex CellIndex { get; }
Property Value
CellIndex
The index of the cell.
ColumnIndex
Gets the index of the column.
Declaration
public override int ColumnIndex { get; }
Property Value
The index of the column.
Methods
MoveToColumnEnd()
Moves to column end.
MoveToColumnStart()
Moves to column start.
MoveToFirstCell()
Moves to first cell.
MoveToIndex(CellIndex)
Moves to index.
Declaration
public bool MoveToIndex(CellIndex cellIndex)
Parameters
cellIndex
CellIndex
Index of the cell.
Returns
True if succeed.
MoveToIndex(int, int)
Moves to index.
MoveToNextColumn(bool)
Moves to next column.
MoveToNextRow(bool)
Moves to next row.
MoveToPosition(CellPosition)
Moves to position.
Declaration
public bool MoveToPosition(CellPosition position)
Parameters
position
The position.
Returns
True if succeed.
MoveToPreviousColumn(bool)
Moves to previous column.
MoveToPreviousRow(bool)
Moves to previous row.
MoveToRowEnd()
Moves to row end.
MoveToRowStart()
Moves to row start.
OnPositionChanged()
Raises the event.
Declaration
protected virtual void OnPositionChanged()
OnPositionChanging(PositionChangingEventArgs)
Raises the event.
Declaration
protected virtual void OnPositionChanging(PositionChangingEventArgs args)
Parameters
args
The PositionChangingEventArgs instance containing the event data.
OnPositionChangingCanceled()
Raises the event.
Declaration
protected virtual void OnPositionChangingCanceled()
SelectCurrentRegion()
Expand the selection to the current cell range.
Events
PositionChanged
Occurs when the position is changed.
PositionChanging
Occurs when the position is changing.
Declaration
public event EventHandler<PositionChangingEventArgs> PositionChanging
Event Value
PositionChangingCanceled
Occurs when the position changing is canceled.
Declaration
public event EventHandler PositionChangingCanceled
Event Value