officefileapi-devexpress-dot-spreadsheet-dot-sheetthumbnailoptions-a2c89195.md
Specifies whether a worksheet area or chart sheet is stretched to fit the output image size.
Namespace : DevExpress.Spreadsheet
Assembly : DevExpress.Spreadsheet.v25.2.Core.dll
NuGet Package : DevExpress.Spreadsheet.Core
public bool Stretch { get; set; }
Public Property Stretch As Boolean
| Type | Description |
|---|---|
| Boolean |
true to stretch the worksheet area or chart sheet; otherwise, false. The default value is false.
|
If the Stretch property is set to true , the Scale property has no effect.
The example below demonstrates how to stretch a chart sheet to fit the specified output image size:
using DevExpress.Spreadsheet;
// ...
chartSheet.CreateThumbnail("Chart_sheet_Thumbnail.png", ImageFileFormat.Png, 460, 340,
new SheetThumbnailOptions() { Stretch = true });
Imports DevExpress.Spreadsheet
' ...
chartSheet.CreateThumbnail("Chart_sheet_Thumbnail.png", ImageFileFormat.Png, 460, 340,
New SheetThumbnailOptions() With { .Stretch = true })
See Also