SheetThumbnailOptions.Stretch Property
Specifies whether a worksheet area or chart sheet is stretched to fit the output image size.
Namespace: DevExpress.Spreadsheet
Assembly: DevExpress.Spreadsheet.v24.1.Core.dll
NuGet Package: DevExpress.Spreadsheet.Core
Declaration
Property Value
Type | Description |
---|---|
Boolean | true to stretch the worksheet area or chart sheet; otherwise, false. The default value is false. |
Remarks
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 });
See Also