New to Telerik Document ProcessingStart a free 30-day trial

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:

C#
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.GetIsStrikethrough()SelectionBase.SetIsStrikethrough(bool)SelectionBase.ClearIsStrikethrough()SelectionBase.GetVerticalTextAlignment()SelectionBase.SetVerticalTextAlignment(VerticalTextAlignment)SelectionBase.ClearVerticalTextAlignment()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

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

C#
public void ClearOutlineLevel()

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

C#
protected abstract void GetFromToIndexFromRange(CellRange cellRange, out int fromIndex, out int toIndex)
Parameters:cellRangeCellRange

The cell range.

fromIndexint

From index.

toIndexint

To index.

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

C#
public abstract RangePropertyValue<int> GetOutlineLevel()
Returns:

RangePropertyValue<int>

The outline level.

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

C#
protected RangePropertyValue<T> GetPropertyValue<T>(IPropertyDefinition<T> property)
Parameters:propertyIPropertyDefinition<T>

The property.

Returns:

RangePropertyValue<T>

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.

C#
public bool Group()
Returns:

bool

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

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

C#
public void SetOutlineLevel(int value)
Parameters:valueint

The outline level.

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

C#
public bool Ungroup()
Returns:

bool

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