IXlColumn.WidthInPixels Property
Gets or sets the column width in pixels.
Namespace: DevExpress.Export.Xl
Assembly: DevExpress.Printing.v24.2.Core.dll
NuGet Package: DevExpress.Printing.Core
#Declaration
#Property Value
Type | Description |
---|---|
Int32 | An integer value that is the column width in pixels. |
#Remarks
Note that Microsoft Excel performs width calculation in characters. When you open a document, Excel converts the column width in pixels to characters. The column width in characters differs on a machine with more than 100% DPI - the resulting width in pixels differs from the specified value. You can specify the Column.WidthInCharacters property to set the column width in characters.
#Related GitHub Examples
The following code snippets (auto-collected from DevExpress Examples) contain references to the WidthInPixels 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.