Skip to main content
All docs
V24.1
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.v24.1.Core.dll

NuGet Package: DevExpress.Spreadsheet.Core

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