Skip to main content

XlPageSetup.Scale Property

Gets or sets the percentage by which to scale the worksheet content.

Namespace: DevExpress.Export.Xl

Assembly: DevExpress.Printing.v23.2.Core.dll

NuGet Package: DevExpress.Printing.Core

Declaration

public int Scale { get; set; }

Property Value

Type Description
Int32

A positive integer value that determines print scaling. This value must be between 10 and 400; otherwise, a System.ArgumentOutOfRangeException will be thrown.

Remarks

Use the Scale property to scale the worksheet content by specifying the scale percentage. Note that the Scale property takes effect only when the XlPageSetup.FitToPage property is false, otherwise your scaling options will be overridden by the XlPageSetup.FitToWidth and XlPageSetup.FitToHeight values.

For more information on how to adjust page formatting options, refer to the How to: Specify Print Settings article.

See Also