Interface IXLColumns
public interface IXLColumns : IEnumerable<IXLColumn>, IEnumerable
- Inherited Members
- Extension Methods
Properties
Style
IXLStyle Style { get; set; }
Property Value
Width
Sets the width of all columns.
double Width { set; }
Property Value
- double
The width of all columns.
Methods
AddVerticalPageBreaks()
Adds a vertical page break after these columns.
IXLColumns AddVerticalPageBreaks()
Returns
AdjustToContents()
Adjusts the width of all columns based on its contents.
IXLColumns AdjustToContents()
Returns
AdjustToContents(double, double)
IXLColumns AdjustToContents(double minWidth, double maxWidth)
Parameters
Returns
AdjustToContents(int)
Adjusts the width of all columns based on its contents, starting from the startRow.
IXLColumns AdjustToContents(int startRow)
Parameters
startRowintThe row to start calculating the column width.
Returns
AdjustToContents(int, double, double)
IXLColumns AdjustToContents(int startRow, double minWidth, double maxWidth)
Parameters
Returns
AdjustToContents(int, int)
Adjusts the width of all columns based on its contents, starting from the startRow and ending at endRow.
IXLColumns AdjustToContents(int startRow, int endRow)
Parameters
startRowintThe row to start calculating the column width.
endRowintThe row to end calculating the column width.
Returns
AdjustToContents(int, int, double, double)
IXLColumns AdjustToContents(int startRow, int endRow, double minWidth, double maxWidth)
Parameters
Returns
Cells()
Returns the collection of cells.
IXLCells Cells()
Returns
CellsUsed()
Returns the collection of cells that have a value.
IXLCells CellsUsed()
Returns
CellsUsed(bool)
Returns the collection of cells that have a value.
IXLCells CellsUsed(bool includeFormats)
Parameters
includeFormatsboolif set to
truewill return all cells with a value or a style different than the default.
Returns
Clear(XLClearOptions)
Clears the contents of these columns.
IXLColumns Clear(XLClearOptions clearOptions = XLClearOptions.All)
Parameters
clearOptionsXLClearOptionsSpecify what you want to clear.
Returns
Collapse()
Show all columns as collapsed.
void Collapse()
Delete()
Deletes all columns and shifts the columns at the right of them accordingly.
void Delete()
Expand()
Expands all columns (if they're collapsed).
void Expand()
Group()
Increments the outline level of all columns by 1.
void Group()
Group(bool)
Increments the outline level of all columns by 1.
void Group(bool collapse)
Parameters
collapseboolIf set to
truethe columns will be shown collapsed.
Group(int)
Sets outline level for all columns.
void Group(int outlineLevel)
Parameters
outlineLevelintThe outline level.
Group(int, bool)
Sets outline level for all columns.
void Group(int outlineLevel, bool collapse)
Parameters
outlineLevelintThe outline level.
collapseboolIf set to
truethe columns will be shown collapsed.
Hide()
Hides all columns.
void Hide()
Select()
void Select()
Ungroup()
Decrements the outline level of all columns by 1.
void Ungroup()
Ungroup(bool)
Decrements the outline level of all columns by 1.
void Ungroup(bool fromAll)
Parameters
fromAllboolIf set to
trueit will remove the columns from all outline levels.
Unhide()
Unhides all columns.
void Unhide()