officefileapi-devexpress-dot-spreadsheet-dot-worksheetthumbnailoptions.md
Specifies the index of the column from which to start thumbnail generation.
Namespace : DevExpress.Spreadsheet
Assembly : DevExpress.Spreadsheet.v25.2.Core.dll
NuGet Package : DevExpress.Spreadsheet.Core
public int ColumnOffset { get; set; }
Public Property ColumnOffset As Integer
| Type | Description |
|---|---|
| Int32 |
A zero-based index of the target column in the worksheet. The default value is 0.
|
The following example demonstrates how to generate a thumbnail for a worksheet area that starts with column “C”:
using DevExpress.Spreadsheet;
// ...
worksheet.CreateThumbnail("Worksheet_Thumbnail.png", ImageFileFormat.Png, 1600, 900,
new WorksheetThumbnailOptions() { ColumnOffset = 2 });
Imports DevExpress.Spreadsheet
' ...
worksheet.CreateThumbnail("Worksheet_Thumbnail.png", ImageFileFormat.Png, 1600, 900,
New WorksheetThumbnailOptions() With {.ColumnOffset = 2})
Tip
You can use the CellRangeExtensions.ExportToImage extension method of a CellRange object to save a cell range as an image.
See Also
WorksheetThumbnailOptions Class