Class RowSelection
Manages a selection of entire rows, providing access to row-specific properties like height, hidden state, and outline level for formatting and manipulation.
Inherited Members
Namespace: Telerik.Windows.Documents.Spreadsheet.Model
Assembly: Telerik.Windows.Documents.Spreadsheet.dll
Syntax
public class RowSelection : RowColumnSelectionBase
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 Int32, out Int32)
Extracts the starting and ending row indices from the specified cell range.
Declaration
protected override void GetFromToIndexFromRange(CellRange cellRange, out int fromIndex, out int toIndex)
Parameters
|
CellRange
cellRange
The cell range. |
|
System.Int32
fromIndex
From index. |
|
System.Int32
toIndex
To index. |
Overrides
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
|
RangePropertyValue<RowHeight>
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
|
RangePropertyValue<System.Boolean>
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
|
RangePropertyValue<System.Int32>
The outline level. |
Overrides
Insert()
Inserts new rows at the positions of the selected rows, shifting existing rows downward.
Declaration
public bool Insert()
Returns
|
System.Boolean
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
|
CellBorders
value
The value. |
Overrides
SetHeight(RowHeight)
Applies the specified height to all rows in the selection.
Declaration
public void SetHeight(RowHeight value)
Parameters
|
RowHeight
value
The value. |
SetHidden(Boolean)
Shows or hides the selected rows in the worksheet.
Declaration
public void SetHidden(bool value)
Parameters
|
System.Boolean
value
The value indicating whether the selected rows are hidden. |