Back to Devexpress

SheetThumbnailOptions.Stretch Property

officefileapi-devexpress-dot-spreadsheet-dot-sheetthumbnailoptions-a2c89195.md

latest2.0 KB
Original Source

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

NuGet Package : DevExpress.Spreadsheet.Core

Declaration

csharp
public bool Stretch { get; set; }
vb
Public Property Stretch As Boolean

Property Value

TypeDescription
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:

csharp
using DevExpress.Spreadsheet;
// ...

chartSheet.CreateThumbnail("Chart_sheet_Thumbnail.png", ImageFileFormat.Png, 460, 340, 
    new SheetThumbnailOptions() { Stretch = true });
vb
Imports DevExpress.Spreadsheet
' ...

chartSheet.CreateThumbnail("Chart_sheet_Thumbnail.png", ImageFileFormat.Png, 460, 340, 
    New SheetThumbnailOptions() With { .Stretch = true })

See Also

SheetThumbnailOptions Class

SheetThumbnailOptions Members

DevExpress.Spreadsheet Namespace