ClassRowSelection
Manages a selection of entire rows, providing access to row-specific properties like height, hidden state, and outline level for formatting and manipulation.
Definition
Namespace:Telerik.Windows.Documents.Spreadsheet.Model
Assembly:Telerik.Windows.Documents.Spreadsheet.dll
Syntax:
public class RowSelection : RowColumnSelectionBase
Inheritance: objectSelectionBaseRowColumnSelectionBaseRowSelection
Inherited Members
Methods
AutoFitHeight()
Adjusts the height of selected rows to automatically fit their content.
Declaration
public void AutoFitHeight()
ClearHeight()
Removes custom height settings from the selected rows, reverting them to the default height.
Declaration
public void ClearHeight()
ClearHidden()
Removes the hidden state from the selected rows, making them visible.
Declaration
public void ClearHidden()
GetFromToIndexFromRange(CellRange, out int, out int)
Extracts the starting and ending row indices from the specified cell range.
GetHeight()
Gets the height value for the selected rows, or an indeterminate state if heights differ across the selection.
Declaration
public RangePropertyValue<RowHeight> GetHeight()
Returns
The height for the selection.
GetHidden()
Gets whether the selected rows are hidden, or an indeterminate state if visibility differs across the selection.
Declaration
public RangePropertyValue<bool> GetHidden()
Returns
The value of the hidden property
GetOutlineLevel()
Gets the outline level of the selected rows, indicating their grouping depth for collapse and expand.
Declaration
public override RangePropertyValue<int> GetOutlineLevel()
Returns
The outline level.
Overrides
Insert()
Inserts new rows at the positions of the selected rows, shifting existing rows downward.
Declaration
public bool Insert()
Returns
The value indicating whether the insert was successful.
Remove()
Deletes the selected rows from the worksheet, shifting remaining rows upward.
Declaration
public void Remove()
SetBorders(CellBorders)
Applies border styling to all cells within the selected rows.
Declaration
public override void SetBorders(CellBorders value)
Parameters
value
The value.
Overrides
SetHeight(RowHeight)
Applies the specified height to all rows in the selection.
Declaration
public void SetHeight(RowHeight value)
Parameters
value
The value.
SetHidden(bool)
Shows or hides the selected rows in the worksheet.
Declaration
public void SetHidden(bool value)
Parameters
value
The value indicating whether the selected rows are hidden.