Back to Devexpress

CommonSlideViewProperties.Scale Property

officefileapi-devexpress-dot-docs-dot-presentation-dot-commonslideviewproperties-f8882772.md

latest1.8 KB
Original Source

CommonSlideViewProperties.Scale Property

Gets or sets the view scaling ratio as a percentage. Applications may ignore this setting.

Namespace : DevExpress.Docs.Presentation

Assembly : DevExpress.Docs.Presentation.v25.2.dll

NuGet Package : DevExpress.Docs.Presentation

Declaration

csharp
public float Scale { get; set; }
vb
Public Property Scale As Single

Property Value

Type
Single

Remarks

The following code snippet specifies the scale of the presentation slide and saves it to a file:

csharp
using (Presentation presentation = new Presentation("document.pptx")) {
    presentation.ViewProperties.SlideViewProperties.Scale = 300; 
    presentation.SaveDocument("Zoomed_document.pptx");
}
vb
Using presentation As New Presentation("document.pptx")
    presentation.ViewProperties.SlideViewProperties.Scale = 300
    presentation.SaveDocument("Zoomed_document.pptx")
End Using

Note

Presentation applications (like PowerPoint, LibreOffice, or OpenOffice) may ignore this property.

See Also

CommonSlideViewProperties Class

CommonSlideViewProperties Members

DevExpress.Docs.Presentation Namespace