Back to Devexpress

SheetThumbnailOptions.Scale Property

officefileapi-devexpress-dot-spreadsheet-dot-sheetthumbnailoptions-8d355973.md

latest2.0 KB
Original Source

SheetThumbnailOptions.Scale Property

Specifies how to scale content of a worksheet or chart sheet before it is saved as an image.

Namespace : DevExpress.Spreadsheet

Assembly : DevExpress.Spreadsheet.v25.2.Core.dll

NuGet Package : DevExpress.Spreadsheet.Core

Declaration

csharp
public int Scale { get; set; }
vb
Public Property Scale As Integer

Property Value

TypeDescription
Int32

A scale percentage between 10% and 400%. The default value is 100%.

|

Remarks

The Scale property has no effect if the Stretch property is set to true.

The following example demonstrates how to scale chart sheet content by 50% before it is saved as an image:

csharp
using DevExpress.Spreadsheet;
// ...

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

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

See Also

SheetThumbnailOptions Class

SheetThumbnailOptions Members

DevExpress.Spreadsheet Namespace