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

Represents selection range.

Definition

Namespace:Telerik.WinForms.Controls.Spreadsheet.Worksheets

Assembly:Telerik.WinControls.RadSpreadsheet.dll

Syntax:

C#
public class SelectionRange

Inheritance: objectSelectionRange

Properties

Gets the index of the active cell.

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

The index of the active cell.

Gets the active position.

C#
public CellPosition ActivePosition { get; }
Property Value:

The active position.

Gets the actual index of the active position.

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

The actual index of the active position.

Gets the actual index of the anchored position.

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

The actual index of the anchored position.

Gets the value indicating if the range is column range.

C#
public bool IsColumnRange { get; }
Property Value:

The value indicating if the range is column range.

Gets the value indicating if the range is row range.

C#
public bool IsRowRange { get; }
Property Value:

The value indicating if the range is row range.

Gets the selected cell range.

C#
public CellRange SelectedCellRange { get; }
Property Value:

The selected cell range.

Methods

Begins the update.

C#
public void BeginUpdate()

Ends the update.

C#
public void EndUpdate()

Called when the range is changed.

C#
protected virtual void OnRangeChanged()

Raises the event.

C#
protected virtual void OnRangeChanging(SelectionRangeChangingEventArgs args)
Parameters:argsSelectionRangeChangingEventArgs

The SelectionRangeChangingEventArgs instance containing the event data.

Events

Occurs when the range is changed.

C#
public event EventHandler RangeChanged

Occurs when the range is changing.

C#
public event EventHandler<SelectionRangeChangingEventArgs> RangeChanging