Back to Devexpress

NormalViewRestoredProperties Struct

officefileapi-devexpress-dot-docs-dot-presentation-864f857a.md

latest3.5 KB
Original Source

NormalViewRestoredProperties Struct

Contains properties that define a region size when the normal view is active and the region is not minimized or maximized.

Namespace : DevExpress.Docs.Presentation

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

NuGet Package : DevExpress.Docs.Presentation

Declaration

csharp
public readonly struct NormalViewRestoredProperties
vb
Public Structure NormalViewRestoredProperties

The following members return NormalViewRestoredProperties objects:

Remarks

Create a NormalViewRestoredProperties instance with its constructor to specify its properties.

Define the Region Width

This property defines the region width when used in the RestoredTop property. The following code snippet extends the side content region:

csharp
using (Presentation presentation = new Presentation("document.pptx")) {
    NormalViewRestoredProperties viewProps = new NormalViewRestoredProperties(100.0);
    presentation.ViewProperties.NormalViewProperties.RestoredLeft = viewProps;
}
vb
Using presentation As New Presentation("document.pptx")
    Dim viewProps As New NormalViewRestoredProperties(100.0)
    presentation.ViewProperties.NormalViewProperties.RestoredLeft = viewProps
End Using

Define the Region Height

If this property is used in the RestoredLeft property, it defines the region height. The following code snippet resizes the slide region:

csharp
using (Presentation presentation = new Presentation("document.pptx")) {
    NormalViewRestoredProperties viewProps = new NormalViewRestoredProperties(10.0);
    presentation.ViewProperties.NormalViewProperties.RestoredTop = viewProps;
}
vb
Using presentation As New Presentation("document.pptx")
    Dim viewProps As New NormalViewRestoredProperties(10.0)
    presentation.ViewProperties.NormalViewProperties.RestoredTop = viewProps
End Using

See Also

NormalViewRestoredProperties Members

DevExpress.Docs.Presentation Namespace