Back to Devexpress

IXlColumn.IsHidden Property

corelibraries-devexpress-dot-export-dot-xl-dot-ixlcolumn.md

latest2.8 KB
Original Source

IXlColumn.IsHidden Property

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

Declaration

csharp
bool IsHidden { get; set; }
vb
Property IsHidden As Boolean

Property Value

TypeDescription
Boolean

true , if the column is hidden; otherwise, false.

|

Remarks

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

csharp
using (IXlColumn column = sheet.CreateColumn()) {
    column.IsHidden = true;
}

excel-export-api-examples/VB/XLExportExamples/SpreadsheetActions/GeneralActions.vb#L163

vb
Using column As IXlColumn = sheet.CreateColumn()
    column.IsHidden = True
End Using

See Also

Use the Excel Export API to Hide a Row or Column

IXlColumn Interface

IXlColumn Members

DevExpress.Export.Xl Namespace