Back to Devexpress

WorksheetThumbnailOptions.RowOffset Property

officefileapi-devexpress-dot-spreadsheet-dot-worksheetthumbnailoptions-75fd7355.md

latest2.1 KB
Original Source

WorksheetThumbnailOptions.RowOffset Property

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

Namespace : DevExpress.Spreadsheet

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

NuGet Package : DevExpress.Spreadsheet.Core

Declaration

csharp
public int RowOffset { get; set; }
vb
Public Property RowOffset As Integer

Property Value

TypeDescription
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:

csharp
using DevExpress.Spreadsheet;
// ...

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

worksheet.CreateThumbnail("Worksheet_Thumbnail.png", ImageFileFormat.Png, 1730, 550, 
    New WorksheetThumbnailOptions() With {.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

WorksheetThumbnailOptions Class

WorksheetThumbnailOptions Members

DevExpress.Spreadsheet Namespace