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

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.v21.2.Core.dll

Declaration

public bool Stretch { get; set; }

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:

Stretch the Thumbnail to Fit the Output Image Size

using DevExpress.Spreadsheet;
// ...

chartSheet.CreateThumbnail("Chart_sheet_Thumbnail.png", ImageFileFormat.Png, 460, 340, 
    new SheetThumbnailOptions() { Stretch = true });
See Also