Back to Devexpress

NormalViewRestoredProperties.AutoAdjust Property

officefileapi-devexpress-dot-docs-dot-presentation-dot-normalviewrestoredproperties-fb058bd0.md

latest2.5 KB
Original Source

NormalViewRestoredProperties.AutoAdjust Property

Gets whether the slide region size should adjust its size when the presentation window is resized.

Namespace : DevExpress.Docs.Presentation

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

NuGet Package : DevExpress.Docs.Presentation

Declaration

csharp
public bool AutoAdjust { get; }
vb
Public ReadOnly Property AutoAdjust As Boolean

Property Value

TypeDescription
Boolean

true if the slide region size should adjust its size when the presentation window is resized; otherwise false.

|

Remarks

Create a NormalViewRestoredProperties instance with its constructor to specify this property value.

The following code snippet extends the side content region (sets its Size to 100.0) and enables its size autoadjustment:

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

See Also

NormalViewRestoredProperties Struct

NormalViewRestoredProperties Members

DevExpress.Docs.Presentation Namespace