Interface IXLRow
public interface IXLRow : IXLRangeBase, IXLAddressable
- Inherited Members
- Extension Methods
Properties
Height
Gets or sets the height of this row.
double Height { get; set; }
Property Value
- double
The width of this row in points.
IsHidden
Gets a value indicating whether this row is hidden or not.
bool IsHidden { get; }
Property Value
- bool
trueif this row is hidden; otherwise,false.
OutlineLevel
Gets or sets the outline level of this row.
int OutlineLevel { get; set; }
Property Value
- int
The outline level of this row.
Methods
AddHorizontalPageBreak()
Adds a horizontal page break after this row.
IXLRow AddHorizontalPageBreak()
Returns
AdjustToContents()
IXLRow AdjustToContents()
Returns
AdjustToContents(double, double)
IXLRow AdjustToContents(double minHeight, double maxHeight)
Parameters
Returns
AdjustToContents(int)
Adjusts the height of the row based on its contents, starting from the startColumn.
IXLRow AdjustToContents(int startColumn)
Parameters
startColumnintThe column to start calculating the row height.
Returns
AdjustToContents(int, double, double)
IXLRow AdjustToContents(int startColumn, double minHeight, double maxHeight)
Parameters
Returns
AdjustToContents(int, int)
Adjusts the height of the row based on its contents, starting from the startColumn and ending at endColumn.
IXLRow AdjustToContents(int startColumn, int endColumn)
Parameters
startColumnintThe column to start calculating the row height.
endColumnintThe column to end calculating the row height.
Returns
AdjustToContents(int, int, double, double)
Adjust height of the column according to the content of the cells.
IXLRow AdjustToContents(int startColumn, int endColumn, double minHeightPt, double maxHeightPt)
Parameters
startColumnintNumber of a first column whose content is considered.
endColumnintNumber of a last column whose content is considered.
minHeightPtdoubleMinimum height of adjusted column, in points.
maxHeightPtdoubleMaximum height of adjusted column, in points.
Returns
Cell(int)
Gets the cell in the specified column.
IXLCell Cell(int columnNumber)
Parameters
columnNumberintThe cell's column.
Returns
Cell(string)
Gets the cell in the specified column.
IXLCell Cell(string columnLetter)
Parameters
columnLetterstringThe cell's column.
Returns
CellCount()
int CellCount()
Returns
Cells(int, int)
Returns the specified group of cells.
IXLCells Cells(int firstColumn, int lastColumn)
Parameters
firstColumnintThe first column in the group of cells to return.
lastColumnintThe last column in the group of cells to return.
Returns
Cells(string)
Returns the specified group of cells, separated by commas.
e.g. Cells("1"), Cells("1:5"), Cells("1,3:5")
IXLCells Cells(string cellsInRow)
Parameters
cellsInRowstringThe row's cells to return.
Returns
Cells(string, string)
Returns the specified group of cells.
IXLCells Cells(string firstColumn, string lastColumn)
Parameters
firstColumnstringThe first column in the group of cells to return.
lastColumnstringThe last column in the group of cells to return.
Returns
Clear(XLClearOptions)
Clears the contents of this row.
IXLRow Clear(XLClearOptions clearOptions = XLClearOptions.All)
Parameters
clearOptionsXLClearOptionsSpecify what you want to clear.
Returns
ClearHeight()
Clears the height for the row and defaults it to the spreadsheet row height.
void ClearHeight()
Collapse()
Show this row as collapsed.
IXLRow Collapse()
Returns
CopyTo(IXLCell)
IXLRangeRow CopyTo(IXLCell cell)
Parameters
cellIXLCell
Returns
CopyTo(IXLRangeBase)
IXLRangeRow CopyTo(IXLRangeBase range)
Parameters
rangeIXLRangeBase
Returns
CopyTo(IXLRow)
IXLRow CopyTo(IXLRow row)
Parameters
rowIXLRow
Returns
Delete()
Deletes this row and shifts the rows below this one accordingly.
void Delete()
Remarks
Don't use in a loop due to poor performance. Use Delete(XLShiftDeletedCells) instead.
Expand()
Expands this row (if it's collapsed).
IXLRow Expand()
Returns
Group()
Adds this row to the next outline level (Increments the outline level for this row by 1).
IXLRow Group()
Returns
Group(bool)
Adds this row to the next outline level (Increments the outline level for this row by 1).
IXLRow Group(bool collapse)
Parameters
collapseboolIf set to
truethe row will be shown collapsed.
Returns
Group(int)
Sets outline level for this row.
IXLRow Group(int outlineLevel)
Parameters
outlineLevelintThe outline level.
Returns
Group(int, bool)
Sets outline level for this row.
IXLRow Group(int outlineLevel, bool collapse)
Parameters
Returns
Hide()
Hides this row.
IXLRow Hide()
Returns
InsertRowsAbove(int)
Inserts X number of rows above this one.
This row and all below will be shifted accordingly.
IXLRows InsertRowsAbove(int numberOfRows)
Parameters
numberOfRowsintThe number of rows to insert.
Returns
InsertRowsBelow(int)
Inserts X number of rows below this one.
All rows below will be shifted accordingly.
IXLRows InsertRowsBelow(int numberOfRows)
Parameters
numberOfRowsintThe number of rows to insert.
Returns
Row(IXLCell, IXLCell)
IXLRangeRow Row(IXLCell start, IXLCell end)
Parameters
Returns
Row(int, int)
IXLRangeRow Row(int start, int end)
Parameters
Returns
RowAbove()
IXLRow RowAbove()
Returns
RowAbove(int)
IXLRow RowAbove(int step)
Parameters
stepint
Returns
RowBelow()
IXLRow RowBelow()
Returns
RowBelow(int)
IXLRow RowBelow(int step)
Parameters
stepint
Returns
RowNumber()
Gets this row's number
int RowNumber()
Returns
RowUsed(XLCellsUsedOptions)
IXLRangeRow RowUsed(XLCellsUsedOptions options = XLCellsUsedOptions.AllContents)
Parameters
optionsXLCellsUsedOptions
Returns
Rows(string)
IXLRangeRows Rows(string columns)
Parameters
columnsstring
Returns
Sort()
IXLRow Sort()
Returns
SortLeftToRight(XLSortOrder, bool, bool)
IXLRow SortLeftToRight(XLSortOrder sortOrder = XLSortOrder.Ascending, bool matchCase = false, bool ignoreBlanks = true)
Parameters
sortOrderXLSortOrdermatchCaseboolignoreBlanksbool
Returns
Ungroup()
Adds this row to the previous outline level (decrements the outline level for this row by 1).
IXLRow Ungroup()
Returns
Ungroup(bool)
Adds this row to the previous outline level (decrements the outline level for this row by 1).
IXLRow Ungroup(bool fromAll)
Parameters
fromAllboolIf set to
trueit will remove this row from all outline levels.
Returns
Unhide()
Unhides this row.
IXLRow Unhide()