Class
SelectionBase

Represents a base class for the different types of selections.

Definition

Namespace:Telerik.Windows.Controls.Spreadsheet.Worksheets

Assembly:Telerik.Windows.Controls.Spreadsheet.dll

Syntax:

cs-api-definition
public abstract class SelectionBase

Inheritance: objectSelectionBase

Derived Classes: Selection

Properties

ActiveRange

Gets the active range.

Declaration

cs-api-definition
public SelectionRange ActiveRange { get; }

Property Value

SelectionRange

The active range.

Cells

Gets the cells selection.

Declaration

cs-api-definition
public CellSelection Cells { get; }

Property Value

CellSelection

The cells selection.

Columns

Gets the columns selection.

Declaration

cs-api-definition
public ColumnSelection Columns { get; }

Property Value

ColumnSelection

The columns selection.

IsColumnSelection

Gets the value defining if the selection is column selection.

Declaration

cs-api-definition
public bool IsColumnSelection { get; }

Property Value

bool

The value defining if the selection is column selection.

IsRowSelection

Gets the value defining if the selection is row selection.

Declaration

cs-api-definition
public bool IsRowSelection { get; }

Property Value

bool

The value defining if the selection is row selection.

IsSelectionInProgress

Gets the value indicating if the selection is in progress.

Declaration

cs-api-definition
public bool IsSelectionInProgress { get; }

Property Value

bool

The value indicating if the selection is in progress.

Rows

Gets the rows selection.

Declaration

cs-api-definition
public RowSelection Rows { get; }

Property Value

RowSelection

The rows selection.

SelectedRanges

Gets the selected ranges.

Declaration

cs-api-definition
public virtual IEnumerable<CellRange> SelectedRanges { get; }

Property Value

IEnumerable<CellRange>

The selected ranges.

SelectedRangesCount

Gets the selected ranges count.

Declaration

cs-api-definition
public int SelectedRangesCount { get; }

Property Value

int

The selected ranges count.

Methods

BeginUpdate()

Begins the update.

Declaration

cs-api-definition
public void BeginUpdate()

ContainsColumn(int)

Determines whether the selection contains column.

Declaration

cs-api-definition
public bool ContainsColumn(int columnIndex)

Parameters

columnIndex

int

Index of the column.

Returns

bool

True if contains the column.

ContainsIndex(CellIndex)

Determines whether the selection contains cell index.

Declaration

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

Parameters

cellIndex

CellIndex

Index of the cell.

Returns

bool

True if contains the cell index.

ContainsPosition(CellPosition)

Determines whether the selection contains cell position.

Declaration

cs-api-definition
public bool ContainsPosition(CellPosition cellPosition)

Parameters

cellPosition

CellPosition

The cell position.

Returns

bool

True if contains the position.

ContainsRange(CellRange)

Determines whether the selection contains cell range.

Declaration

cs-api-definition
public bool ContainsRange(CellRange cellRange)

Parameters

cellRange

CellRange

The cell range.

Returns

bool

True if contains the range.

ContainsRow(int)

Determines whether the selection contains row.

Declaration

cs-api-definition
public bool ContainsRow(int rowIndex)

Parameters

rowIndex

int

Index of the row.

Returns

bool

True if contains the row.

EndUpdate()

Ends the update.

Declaration

cs-api-definition
public void EndUpdate()

IntersectsColumn(int)

Checks if the the column intersects with the selection.

Declaration

cs-api-definition
public virtual bool IntersectsColumn(int columnIndex)

Parameters

columnIndex

int

Index of the column.

Returns

bool

True if intersects.

IntersectsRow(int)

Checks if the the row intersects with the selection.

Declaration

cs-api-definition
public virtual bool IntersectsRow(int rowIndex)

Parameters

rowIndex

int

Index of the row.

Returns

bool

True if intersects.

OnSelectionChanged()

Called when the selection is changed.

Declaration

cs-api-definition
protected virtual void OnSelectionChanged()

OnSelectionChanging(SelectionChangingEventArgs)

Raises the event.

Declaration

cs-api-definition
protected virtual void OnSelectionChanging(SelectionChangingEventArgs args)

Parameters

args

SelectionChangingEventArgs

The SelectionChangingEventArgs instance containing the event data.

OnSelectionChangingCanceled()

Called when the selection changing is canceled.

Declaration

cs-api-definition
protected virtual void OnSelectionChangingCanceled()

OnSelectionUpdate()

Called on selection update.

Declaration

cs-api-definition
protected virtual void OnSelectionUpdate()

Select(CellIndex, CellIndex, bool)

Selects range defined by the fromIndex and toIndex parameters.

Declaration

cs-api-definition
public void Select(CellIndex fromIndex, CellIndex toIndex, bool clearSelection = true)

Parameters

fromIndex

CellIndex

From index of the range.

toIndex

CellIndex

To index of the range.

clearSelection

bool

Defines if the old selection has to be cleared.

Select(CellIndex, bool)

Selects the specified cell index.

Declaration

cs-api-definition
public void Select(CellIndex cellIndex, bool clearSelection = true)

Parameters

cellIndex

CellIndex

Index of the cell.

clearSelection

bool

Defines if the old selection has to be cleared.

Select(CellRange, bool)

Selects the specified cell range.

Declaration

cs-api-definition
public void Select(CellRange cellRange, bool clearSelection = true)

Parameters

cellRange

CellRange

The cell range.

clearSelection

bool

Defines if the old selection has to be cleared.

Select(int, int, int, int, bool)

Selects the specified cell range.

Declaration

cs-api-definition
public void Select(int fromRowIndex, int fromColumnIndex, int toRowIndex, int toColumnIndex, bool clearSelection = true)

Parameters

fromRowIndex

int

From row index.

fromColumnIndex

int

From column index.

toRowIndex

int

To row index.

toColumnIndex

int

To column index.

clearSelection

bool

Defines if the old selection has to be cleared.

SelectAll()

Selects all.

Declaration

cs-api-definition
public void SelectAll()

Events

SelectionChanged

Occurs when the selection is changed.

Declaration

cs-api-definition
public event EventHandler SelectionChanged

Event Value

EventHandler

SelectionChanging

Occurs when the selection is changing.

Declaration

cs-api-definition
public event EventHandler<SelectionChangingEventArgs> SelectionChanging

Event Value

EventHandler<SelectionChangingEventArgs>

SelectionChangingCanceled

Occurs when the selection changing is canceled.

Declaration

cs-api-definition
public event EventHandler SelectionChangingCanceled

Event Value

EventHandler

SelectionUpdate

Occurs on selection update.

Declaration

cs-api-definition
public event EventHandler SelectionUpdate

Event Value

EventHandler