Class RangeRow
A class that represents a single row of cells.
Inherited Members
Namespace: IronXL
Assembly: IronXL.dll
Syntax
public class RangeRow : Range
Properties
Height
Gets or sets the height of the row.
Declaration
public int Height { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Int32 |
Hidden
Gets or sets a value indicating whether this row is hidden.
Declaration
public bool Hidden { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Boolean |
RowNumber
0-based index of the row.
Declaration
public int RowNumber { get; }
Property Value
| Type | Description |
|---|---|
| System.Int32 |
Methods
AutoSizeRow()
Changes height of the row to fit the content. NOTE: This method measures the text in the cell based on the font that is used for the cell. If the exact font is not found on the machine it will try to measure it with a defalt font. If the default could not be found, it will try to use any font available. Finally if there are no fonts found the exception will be thrown.
Declaration
public void AutoSizeRow()
Exceptions
| Type | Condition |
|---|---|
| System.ArgumentException | |
| SixLabors.Fonts.FontException | Trown when no fonts found istalled on the machine. |
AutoSizeRow(Boolean)
Changes height of the row to fit the content. NOTE: This method measures the text in the cell based on the font that is used for the cell. If the exact font is not found on the machine it will try to measure it with a defalt font. If the default could not be found, it will try to use any font available. Finally if there are no fonts found the exception will be thrown.
Declaration
public void AutoSizeRow(bool useMergedCells)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Boolean | useMergedCells | If true, the height of merged cells will be considered. |
Exceptions
| Type | Condition |
|---|---|
| System.ArgumentException | |
| SixLabors.Fonts.FontException | Trown when no fonts found istalled on the machine. |
RemoveRow()
Removes the row from the worksheet.
Declaration
public void RemoveRow()