New to Telerik Document ProcessingStart a free 30-day trial

Rows

Class

Manages the collection of rows in a worksheet, providing access to row properties, heights, and operations like insert and remove.

Definition

Properties

Gets the total number of rows in the worksheet.

C#
public override int Count { get; }
Property Value:

The row / column count.

Overrides: RowsColumnsBase.Count

Gets a RowSelection for the row containing the specified cell index.

C#
public RowSelection this[CellIndex cellIndex] { get; }
Parameters:cellIndexCellIndexProperty Value:

The row selection.

Gets a RowSelection for the rows intersecting the specified cell range.

C#
public RowSelection this[CellRange cellRange] { get; }
Parameters:cellRangeCellRangeProperty Value:

The row selection.

Gets a RowSelection for the rows intersecting the specified collection of cell ranges.

C#
public RowSelection this[IEnumerable<CellRange> cellRanges] { get; }
Parameters:cellRangesIEnumerable<CellRange>Property Value:

The row selection.

Gets a RowSelection for the continuous range of rows between the specified start and end indices.

C#
public RowSelection this[int fromIndex, int toIndex] { get; }
Parameters:fromIndexinttoIndexintProperty Value:

The row selection.

Gets a RowSelection for the row at the specified index.

C#
public RowSelection this[int index] { get; }
Parameters:indexintProperty Value:

The row selection.

Methods

Checks whether the specified number of rows can be inserted at the given index without exceeding worksheet limits.

C#
public override bool CanInsert(int index, int itemCount)
Parameters:indexint

The index.

itemCountint

The item count.

Returns:

bool

The value indicating whether this instance can be inserted at the specified index

Overrides: RowsColumnsBase.CanInsert(int, int)

Gets the default height applied to rows without custom height settings.

C#
public RowHeight GetDefaultHeight()
Returns:

RowHeight

The row height

Creates a row selection for the row containing the specified cell index.

C#
public RowSelection GetRowSelection(CellIndex cellIndex)
Parameters:cellIndexCellIndex

Index of the cell.

Returns:

RowSelection

The row selection

Creates a row selection for the rows intersecting the specified cell range.

C#
public RowSelection GetRowSelection(CellRange cellRange)
Parameters:cellRangeCellRange

The cell range.

Returns:

RowSelection

The row selection

Creates a row selection for the rows intersecting the specified collection of cell ranges.

C#
public RowSelection GetRowSelection(IEnumerable<CellRange> cellRanges)
Parameters:cellRangesIEnumerable<CellRange>

The cell ranges.

Returns:

RowSelection

The row selection

Creates a row selection for the continuous range of rows between the specified start and end indices.

C#
public RowSelection GetRowSelection(int fromIndex, int toIndex)
Parameters:fromIndexint

From index.

toIndexint

To index.

Returns:

RowSelection

The row selection

Creates a row selection for the single row at the specified index.

C#
public RowSelection GetRowSelection(int index)
Parameters:indexint

The index.

Returns:

RowSelection

The row selection

Executes the row insertion command at the specified index, shifting existing rows downward.

C#
protected override bool InsertOverride(int index, int itemCount)
Parameters:indexint

The index.

itemCountint

The item count.

Returns:

bool

Overrides: RowsColumnsBase.InsertOverride(int, int)

Executes the row removal command at the specified index, shifting remaining rows upward.

C#
protected override void RemoveOverride(int index, int itemCount)
Parameters:indexint

The index.

itemCountint

The item count.

Overrides: RowsColumnsBase.RemoveOverride(int, int)

Sets the default height for all rows that do not have a custom height assigned.

C#
public void SetDefaultHeight(RowHeight height)
Parameters:heightRowHeight

The height.

Events

Raised when row heights are modified, providing the range of affected rows.

C#
public event EventHandler<RowColumnPropertyChangedEventArgs> RowsHeightsChanged