Skip to main content
All docs
V24.2
Row

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

WorksheetThumbnailOptions.ColumnOffset Property

Specifies the index of the column from which to start thumbnail generation.

Namespace: DevExpress.Spreadsheet

Assembly: DevExpress.Spreadsheet.v24.2.Core.dll

NuGet Package: DevExpress.Spreadsheet.Core

#Declaration

public int ColumnOffset { get; set; }

#Property Value

Type Description
Int32

A zero-based index of the target column in the worksheet. The default value is 0.

#Remarks

The following example demonstrates how to generate a thumbnail for a worksheet area that starts with column “C”:

Create a Thumbnail Image of a Worksheet with a Column Offset

using DevExpress.Spreadsheet;
// ...

worksheet.CreateThumbnail("Worksheet_Thumbnail.png", ImageFileFormat.Png, 1600, 900, 
    new WorksheetThumbnailOptions() { 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