corelibraries-devexpress-dot-export-dot-xl-dot-ixlcolumn.md
Gets or sets whether the column is visible or hidden.
Namespace : DevExpress.Export.Xl
Assembly : DevExpress.Printing.v25.2.Core.dll
NuGet Package : DevExpress.Printing.Core
bool IsHidden { get; set; }
Property IsHidden As Boolean
| Type | Description |
|---|---|
| Boolean |
true , if the column is hidden; otherwise, false.
|
Note
You can also hide a row or column in a worksheet by setting the row height (IXlRow.HeightInPixels) or column width (IXlColumn.WidthInPixels or IXlColumn.WidthInCharacters) to 0, respectively.
The following code snippet (auto-collected from DevExpress Examples) contains a reference to the IsHidden property.
Note
The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.
excel-export-api-examples/CS/XLExportExamples/SpreadsheetActions/GeneralActions.cs#L168
using (IXlColumn column = sheet.CreateColumn()) {
column.IsHidden = true;
}
excel-export-api-examples/VB/XLExportExamples/SpreadsheetActions/GeneralActions.vb#L163
Using column As IXlColumn = sheet.CreateColumn()
column.IsHidden = True
End Using
See Also