Class FullRowRange
Represents a range that spans one or more full rows in a worksheet.
Inherited Members
Namespace: DRIT.Spreadsheet
Assembly: DRIT.Spreadsheet.dll
Syntax
public class FullRowRange : FullRange, INotifyPropertyChanged, IEnumerable<object>, IEnumerable
Remarks
FullRowRange is used to represent operations that apply to entire rows,
such as formatting entire rows, hiding/unhiding rows, or setting row heights.
This class inherits from FullRange and provides row-specific implementations for range operations.
Examples
// Create a range spanning rows 1 through 5
var fullRows = new FullRowRange(worksheet.Rows[0], worksheet.Rows[4]);
fullRows.Height = 20.0; // Set height for all rows in the range
Constructors
FullRowRange(Row)
Initializes a new FullRowRange from a single row.
Declaration
public FullRowRange(Row row)
Parameters
| Type | Name | Description |
|---|---|---|
| Row | row | The row to create the range from. |
Remarks
FullRowRange is used to represent operations that apply to entire rows,
such as formatting entire rows, hiding/unhiding rows, or setting row heights.
This class inherits from FullRange and provides row-specific implementations for range operations.
FullRowRange(Row, Row)
Initializes a new FullRowRange spanning two rows.
Declaration
public FullRowRange(Row row1, Row row2)
Parameters
| Type | Name | Description |
|---|---|---|
| Row | row1 | The first row in the range. |
| Row | row2 | The last row in the range. |
Remarks
FullRowRange is used to represent operations that apply to entire rows,
such as formatting entire rows, hiding/unhiding rows, or setting row heights.
This class inherits from FullRange and provides row-specific implementations for range operations.
Properties
ColumnCount
Gets the number of columns in this range (always the maximum column span for full row ranges).
Declaration
public override int ColumnCount { get; }
Property Value
| Type | Description |
|---|---|
| int |
Overrides
Remarks
FullRowRange is used to represent operations that apply to entire rows,
such as formatting entire rows, hiding/unhiding rows, or setting row heights.
This class inherits from FullRange and provides row-specific implementations for range operations.
FirstColumnIndex
Gets the index of the first column in this range (always 0 for full row ranges).
Declaration
public override int FirstColumnIndex { get; }
Property Value
| Type | Description |
|---|---|
| int |
Overrides
Remarks
FullRowRange is used to represent operations that apply to entire rows,
such as formatting entire rows, hiding/unhiding rows, or setting row heights.
This class inherits from FullRange and provides row-specific implementations for range operations.
FirstRowIndex
Gets the index of the first row in this range.
Declaration
public override int FirstRowIndex { get; }
Property Value
| Type | Description |
|---|---|
| int |
Overrides
Remarks
FullRowRange is used to represent operations that apply to entire rows,
such as formatting entire rows, hiding/unhiding rows, or setting row heights.
This class inherits from FullRange and provides row-specific implementations for range operations.
IsFullColumn
Gets a value indicating whether this range represents a full column.
Declaration
public override bool IsFullColumn { get; }
Property Value
| Type | Description |
|---|---|
| bool |
Overrides
Remarks
FullRowRange is used to represent operations that apply to entire rows,
such as formatting entire rows, hiding/unhiding rows, or setting row heights.
This class inherits from FullRange and provides row-specific implementations for range operations.
IsFullRow
Gets a value indicating whether this range represents a full row.
Declaration
public override bool IsFullRow { get; }
Property Value
| Type | Description |
|---|---|
| bool |
Overrides
Remarks
FullRowRange is used to represent operations that apply to entire rows,
such as formatting entire rows, hiding/unhiding rows, or setting row heights.
This class inherits from FullRange and provides row-specific implementations for range operations.
this[int, int]
Gets the cell at the specified row and column offset within this range.
Declaration
public override Cell this[int row, int column] { get; }
Parameters
| Type | Name | Description |
|---|---|---|
| int | row | The row offset from the first row. |
| int | column | The column index. |
Property Value
| Type | Description |
|---|---|
| Cell | The cell at the specified position. |
Overrides
Remarks
FullRowRange is used to represent operations that apply to entire rows,
such as formatting entire rows, hiding/unhiding rows, or setting row heights.
This class inherits from FullRange and provides row-specific implementations for range operations.
RowCount
Gets the number of rows in this range.
Declaration
public override int RowCount { get; }
Property Value
| Type | Description |
|---|---|
| int |
Overrides
Remarks
FullRowRange is used to represent operations that apply to entire rows,
such as formatting entire rows, hiding/unhiding rows, or setting row heights.
This class inherits from FullRange and provides row-specific implementations for range operations.
TopLeftCell
Gets the top-left cell of this full row range.
Declaration
public override Cell TopLeftCell { get; }
Property Value
| Type | Description |
|---|---|
| Cell |
Overrides
Remarks
FullRowRange is used to represent operations that apply to entire rows,
such as formatting entire rows, hiding/unhiding rows, or setting row heights.
This class inherits from FullRange and provides row-specific implementations for range operations.
Methods
GetAllCells()
Gets all cells in this full row range, including empty cells.
Declaration
public override IEnumerable<Cell> GetAllCells()
Returns
| Type | Description |
|---|---|
| IEnumerable<Cell> | An enumerable of all cells in the range. |
Overrides
Remarks
FullRowRange is used to represent operations that apply to entire rows,
such as formatting entire rows, hiding/unhiding rows, or setting row heights.
This class inherits from FullRange and provides row-specific implementations for range operations.
GetColumns()
Gets all columns in this full row range.
Declaration
public override IEnumerable<Column> GetColumns()
Returns
| Type | Description |
|---|---|
| IEnumerable<Column> | An enumerable of all columns in the worksheet. |
Overrides
Remarks
FullRowRange is used to represent operations that apply to entire rows,
such as formatting entire rows, hiding/unhiding rows, or setting row heights.
This class inherits from FullRange and provides row-specific implementations for range operations.
GetRows()
Gets all rows in this full row range.
Declaration
public override IEnumerable<Row> GetRows()
Returns
| Type | Description |
|---|---|
| IEnumerable<Row> | An enumerable of all rows spanned by this range. |
Overrides
Remarks
FullRowRange is used to represent operations that apply to entire rows,
such as formatting entire rows, hiding/unhiding rows, or setting row heights.
This class inherits from FullRange and provides row-specific implementations for range operations.
SetBorder(Border, BorderType)
Updates the border held by the FullRowRange.
Declaration
public override void SetBorder(Border border, BorderType borderType)
Parameters
| Type | Name | Description |
|---|---|---|
| Border | border | The border used by the operation. |
| BorderType | borderType | The border type used by the operation. |
Overrides
Remarks
FullRowRange is used to represent operations that apply to entire rows,
such as formatting entire rows, hiding/unhiding rows, or setting row heights.
This class inherits from FullRange and provides row-specific implementations for range operations.