Class
RowColumnSelectionBase

Abstract base for row and column selections, providing property management, outlining, and range-based operations on entire rows or columns.

Definition

Namespace:Telerik.Windows.Documents.Spreadsheet.Model

Assembly:Telerik.Windows.Documents.Spreadsheet.dll

Syntax:

cs-api-definition
public abstract class RowColumnSelectionBase : SelectionBase

Inheritance: objectSelectionBaseRowColumnSelectionBase

Derived Classes: ColumnSelectionRowSelection

Inherited Members SelectionBase.BeginUpdate()SelectionBase.EndUpdate()SelectionBase.ExecuteForEachRangeInsideBeginEndUpdate(Action<CellRange>)SelectionBase.ExecuteForEachRangeInsideBeginEndUpdate(IEnumerable<CellRange>, Action<CellRange>, Predicate<CellRange>)SelectionBase.ExecuteForEachRange(Action<CellRange>)SelectionBase.ExecuteForEachRange(IEnumerable<CellRange>, Action<CellRange>, Predicate<CellRange>)SelectionBase.GetPropertyValue<T>(Func<CellRange, RangePropertyValue<T>>, IEnumerable<CellRange>, T)SelectionBase.GetTopLeftCellIndex()SelectionBase.Clear(ClearType)SelectionBase.GetFormat()SelectionBase.SetFormat(CellValueFormat)SelectionBase.ClearFormat()SelectionBase.GetStyleName()SelectionBase.SetStyleName(string)SelectionBase.ClearStyleName()SelectionBase.GetFill()SelectionBase.SetFill(IFill)SelectionBase.ClearFill()SelectionBase.GetFontFamily()SelectionBase.SetFontFamily(ThemableFontFamily)SelectionBase.ClearFontFamily()SelectionBase.GetFontSize()SelectionBase.SetFontSize(double)SelectionBase.ClearFontSize()SelectionBase.GetIsBold()SelectionBase.SetIsBold(bool)SelectionBase.ClearIsBold()SelectionBase.GetIsItalic()SelectionBase.SetIsItalic(bool)SelectionBase.ClearIsItalic()SelectionBase.GetUnderline()SelectionBase.SetUnderline(UnderlineType)SelectionBase.ClearUnderline()SelectionBase.GetForeColor()SelectionBase.SetForeColor(ThemableColor)SelectionBase.ClearForeColor()SelectionBase.GetHorizontalAlignment()SelectionBase.SetHorizontalAlignment(RadHorizontalAlignment)SelectionBase.ClearHorizontalAlignment()SelectionBase.GetVerticalAlignment()SelectionBase.SetVerticalAlignment(RadVerticalAlignment)SelectionBase.ClearVerticalAlignment()SelectionBase.GetIndent()SelectionBase.SetIndent(int)SelectionBase.ClearIndent()SelectionBase.IncreaseIndent()SelectionBase.DecreaseIndent()SelectionBase.GetIsWrapped()SelectionBase.SetIsWrapped(bool)SelectionBase.ClearIsWrapped()SelectionBase.GetTextRotation()SelectionBase.SetTextRotation(int)SelectionBase.ClearTextRotation()SelectionBase.GetBorders()SelectionBase.SetBorders(CellBorders)SelectionBase.ClearBorders()SelectionBase.GetIsLocked()SelectionBase.SetIsLocked(bool)SelectionBase.ClearIsLocked()SelectionBase.CellRangesSelectionBase.Worksheet

Methods

ClearOutlineLevel()

Removes the outline level from the selected rows or columns, ungrouping them completely.

Declaration

cs-api-definition
public void ClearOutlineLevel()

GetFromToIndexFromRange(CellRange, out int, out int)

Extracts the start and end row or column indices from the specified cell range.

Declaration

cs-api-definition
protected abstract void GetFromToIndexFromRange(CellRange cellRange, out int fromIndex, out int toIndex)

Parameters

cellRange

CellRange

The cell range.

fromIndex

int

From index.

toIndex

int

To index.

GetOutlineLevel()

Gets the outline level for the selected rows or columns, indicating the current grouping depth.

Declaration

cs-api-definition
public abstract RangePropertyValue<int> GetOutlineLevel()

Returns

RangePropertyValue<int>

The outline level.

GetPropertyValue<T>(IPropertyDefinition<T>)

Gets the property value across the selected row or column ranges, resolving to a single value or indeterminate state if values differ.

Declaration

cs-api-definition
protected RangePropertyValue<T> GetPropertyValue<T>(IPropertyDefinition<T> property)

Parameters

property

IPropertyDefinition<T>

The property.

Returns

RangePropertyValue<T>

Group()

Increases the outline level of rows or columns in the current selection to group them for collapsing; the selection must be a single continuous range.

Declaration

cs-api-definition
public bool Group()

Returns

bool

A value indicating whether at least part of the selection was grouped successfully.

SetOutlineLevel(int)

Sets the outline level for the selected rows or columns, determining grouping depth for collapse and expand operations.

Declaration

cs-api-definition
public void SetOutlineLevel(int value)

Parameters

value

int

The outline level.

Ungroup()

Decreases the outline level of rows or columns in the current selection to ungroup them; the selection must be a single continuous range.

Declaration

cs-api-definition
public bool Ungroup()

Returns

bool

A value indicating whether at least part of the selection was ungrouped successfully.