 | WorksheetSetColumnDefaultStyle(Int32, Style) Method |
Sets the default column style of the passed column number (zero-based)
Namespace: NanoXLSXAssembly: NanoXLSX (in NanoXLSX.dll) Version: 2.6.3+98f265239ae8df4639650ecd7029244cc5e52dfc
Syntaxpublic Style SetColumnDefaultStyle(
int columnNumber,
Style style
)
Parameters
- columnNumber Int32
- Column number (zero-based, from 0 to 16383)
- style Style
- Style to set as default. If null, the style is cleared
Return Value
StyleAssigned style or null if cleared
ExceptionsException | Condition |
---|
RangeException | Throws a RangeException: a) If the passed column number is out of range b) if the column width is out of range (0 - 255.0) |
See Also