Skip to main content
All docs
V24.2
Row

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

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.2.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