Class
CellPosition

Represents the cell position.

Definition

Namespace:Telerik.Windows.Controls.Spreadsheet.Worksheets

Assembly:Telerik.Windows.Controls.Spreadsheet.dll

Syntax:

cs-api-definition
public class CellPosition : CellIndexBase

Inheritance: objectCellPosition

Constructors

CellPosition()

Initializes a new instance of the CellPosition class.

Declaration

cs-api-definition
public CellPosition()

CellPosition(CellPositionValidator)

Initializes a new instance of the CellPosition class.

Declaration

cs-api-definition
public CellPosition(CellPositionValidator cellPositionValidator)

Parameters

cellPositionValidator

CellPositionValidator

The cell position validator.

Properties

CellIndex

Gets the index of the cell.

Declaration

cs-api-definition
public CellIndex CellIndex { get; }

Property Value

CellIndex

The index of the cell.

ColumnIndex

Gets the index of the column.

Declaration

cs-api-definition
public override int ColumnIndex { get; }

Property Value

int

The index of the column.

RowIndex

Gets the index of the row.

Declaration

cs-api-definition
public override int RowIndex { get; }

Property Value

int

The index of the row.

Methods

BeginUpdate()

Begins the update.

Declaration

cs-api-definition
public void BeginUpdate()

EndUpdate()

Ends the update.

Declaration

cs-api-definition
public void EndUpdate()

MoveToColumnEnd()

Moves to column end.

Declaration

cs-api-definition
public bool MoveToColumnEnd()

Returns

bool

True if succeed..

MoveToColumnStart()

Moves to column start.

Declaration

cs-api-definition
public bool MoveToColumnStart()

Returns

bool

True if succeed..

MoveToFirstCell()

Moves to first cell.

Declaration

cs-api-definition
public bool MoveToFirstCell()

Returns

bool

True if succeed.

MoveToIndex(CellIndex)

Moves to index.

Declaration

cs-api-definition
public bool MoveToIndex(CellIndex cellIndex)

Parameters

cellIndex

CellIndex

Index of the cell.

Returns

bool

True if succeed.

MoveToIndex(int, int)

Moves to index.

Declaration

cs-api-definition
public bool MoveToIndex(int rowIndex, int columnIndex)

Parameters

rowIndex

int

Index of the row.

columnIndex

int

Index of the column.

Returns

bool

True if succeed.

MoveToNextColumn(bool)

Moves to next column.

Declaration

cs-api-definition
public bool MoveToNextColumn(bool isSelectionInProgress = false)

Parameters

isSelectionInProgress

bool

Returns

bool

True if succeed.

MoveToNextRow(bool)

Moves to next row.

Declaration

cs-api-definition
public bool MoveToNextRow(bool isSelectionInProgress = false)

Parameters

isSelectionInProgress

bool

Returns

bool

True if succeed.

MoveToPosition(CellPosition)

Moves to position.

Declaration

cs-api-definition
public bool MoveToPosition(CellPosition position)

Parameters

position

CellPosition

The position.

Returns

bool

True if succeed.

MoveToPreviousColumn(bool)

Moves to previous column.

Declaration

cs-api-definition
public bool MoveToPreviousColumn(bool isSelectionInProgress = false)

Parameters

isSelectionInProgress

bool

Returns

bool

True if succeed.

MoveToPreviousRow(bool)

Moves to previous row.

Declaration

cs-api-definition
public bool MoveToPreviousRow(bool isSelectionInProgress = false)

Parameters

isSelectionInProgress

bool

Returns

bool

True if succeed.

MoveToRowEnd()

Moves to row end.

Declaration

cs-api-definition
public bool MoveToRowEnd()

Returns

bool

True if succeed..

MoveToRowStart()

Moves to row start.

Declaration

cs-api-definition
public bool MoveToRowStart()

Returns

bool

True if succeed..

OnPositionChanged()

Raises the event.

Declaration

cs-api-definition
protected virtual void OnPositionChanged()

OnPositionChanging(PositionChangingEventArgs)

Raises the event.

Declaration

cs-api-definition
protected virtual void OnPositionChanging(PositionChangingEventArgs args)

Parameters

args

PositionChangingEventArgs

The PositionChangingEventArgs instance containing the event data.

OnPositionChangingCanceled()

Raises the event.

Declaration

cs-api-definition
protected virtual void OnPositionChangingCanceled()

SelectCurrentRegion()

Expand the selection to the current cell range.

Declaration

cs-api-definition
public bool SelectCurrentRegion()

Returns

bool

Events

PositionChanged

Occurs when the position is changed.

Declaration

cs-api-definition
public event EventHandler PositionChanged

Event Value

EventHandler

PositionChanging

Occurs when the position is changing.

Declaration

cs-api-definition
public event EventHandler<PositionChangingEventArgs> PositionChanging

Event Value

EventHandler<PositionChangingEventArgs>

PositionChangingCanceled

Occurs when the position changing is canceled.

Declaration

cs-api-definition
public event EventHandler PositionChangingCanceled

Event Value

EventHandler