Skip to main content
A newer version of this page is available. .
All docs
V21.2
.NET Framework 4.5.2+
Row

WorksheetThumbnailOptions.RowOffset Property

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

Namespace: DevExpress.Spreadsheet

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

Declaration

public int RowOffset { get; set; }

Property Value

Type Description
Int32

A zero-based index of the target row 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 the fifth row:

Create a Thumbnail Image of a Worksheet with a Row Offset

using DevExpress.Spreadsheet;
// ...

worksheet.CreateThumbnail("Worksheet_Thumbnail.png", ImageFileFormat.Png, 1730, 550, 
    new WorksheetThumbnailOptions() { RowOffset = 4 });

Tip

You can use the CellRangeExtensions.ExportToImage extension method of a CellRange object to save a cell range as an image.

See Also