ClassRows
Manages the collection of rows in a worksheet, providing access to row properties, heights, and operations like insert and remove.
Definition
Namespace:Telerik.Windows.Documents.Spreadsheet.Model
Assembly:Telerik.Windows.Documents.Spreadsheet.dll
Syntax:
public class Rows : RowsColumnsBase
Inheritance: objectWorksheetEntityBaseRowsColumnsBaseRows
Inherited Members
Properties
Count
Gets the total number of rows in the worksheet.
Declaration
public override int Count { get; }
Property Value
The row / column count.
Overrides
this[CellIndex]
Gets a RowSelection for the row containing the specified cell index.
Declaration
public RowSelection this[CellIndex cellIndex] { get; }
Parameters
cellIndex
Property Value
The row selection.
this[CellRange]
Gets a RowSelection for the rows intersecting the specified cell range.
Declaration
public RowSelection this[CellRange cellRange] { get; }
Parameters
cellRange
Property Value
The row selection.
this[IEnumerable<CellRange>]
Gets a RowSelection for the rows intersecting the specified collection of cell ranges.
Declaration
public RowSelection this[IEnumerable<CellRange> cellRanges] { get; }
Parameters
cellRanges
Property Value
The row selection.
this[int, int]
Gets a RowSelection for the continuous range of rows between the specified start and end indices.
Declaration
public RowSelection this[int fromIndex, int toIndex] { get; }
Parameters
fromIndex
toIndex
Property Value
The row selection.
this[int]
Gets a RowSelection for the row at the specified index.
Declaration
public RowSelection this[int index] { get; }
Parameters
index
Property Value
The row selection.
Methods
CanInsert(int, int)
Checks whether the specified number of rows can be inserted at the given index without exceeding worksheet limits.
GetDefaultHeight()
Gets the default height applied to rows without custom height settings.
GetRowSelection(CellIndex)
Creates a row selection for the row containing the specified cell index.
Declaration
public RowSelection GetRowSelection(CellIndex cellIndex)
Parameters
cellIndex
Index of the cell.
Returns
The row selection
GetRowSelection(CellRange)
Creates a row selection for the rows intersecting the specified cell range.
Declaration
public RowSelection GetRowSelection(CellRange cellRange)
Parameters
cellRange
The cell range.
Returns
The row selection
GetRowSelection(IEnumerable<CellRange>)
Creates a row selection for the rows intersecting the specified collection of cell ranges.
Declaration
public RowSelection GetRowSelection(IEnumerable<CellRange> cellRanges)
Parameters
cellRanges
The cell ranges.
Returns
The row selection
GetRowSelection(int)
Creates a row selection for the single row at the specified index.
Declaration
public RowSelection GetRowSelection(int index)
Parameters
index
The index.
Returns
The row selection
GetRowSelection(int, int)
Creates a row selection for the continuous range of rows between the specified start and end indices.
Declaration
public RowSelection GetRowSelection(int fromIndex, int toIndex)
Parameters
fromIndex
From index.
toIndex
To index.
Returns
The row selection
InsertOverride(int, int)
Executes the row insertion command at the specified index, shifting existing rows downward.
RemoveOverride(int, int)
Executes the row removal command at the specified index, shifting remaining rows upward.
SetDefaultHeight(RowHeight)
Sets the default height for all rows that do not have a custom height assigned.
Declaration
public void SetDefaultHeight(RowHeight height)
Parameters
height
The height.
Events
RowsHeightsChanged
Raised when row heights are modified, providing the range of affected rows.
Declaration
public event EventHandler<RowColumnPropertyChangedEventArgs> RowsHeightsChanged
Event Value