Back to Devexpress

NormalViewRestoredProperties(Double, Boolean) Constructor

officefileapi-devexpress-dot-docs-dot-presentation-dot-normalviewrestoredproperties-dot-ctor-x28-system-dot-double-system-dot-boolean-x29.md

latest2.9 KB
Original Source

NormalViewRestoredProperties(Double, Boolean) Constructor

Initializes a new instance of the NormalViewRestoredProperties class with specified settings.

Namespace : DevExpress.Docs.Presentation

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

NuGet Package : DevExpress.Docs.Presentation

Declaration

csharp
public NormalViewRestoredProperties(
    double size,
    bool autoAdjust = true
)
vb
Public Sub New(
    size As Double,
    autoAdjust As Boolean = True
)

Parameters

NameTypeDescription
sizeDouble

The slide region size (width when used with RestoredTop properties; height when used with RestoredLeft properties) between 0.0 and 100.0.

|

Optional Parameters

NameTypeDefaultDescription
autoAdjustBooleanTrue

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

|

Remarks

The following code snippet creates the NormalViewRestoredProperties instance with the specified AutoAdjust and Size properties:

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

See Also

NormalViewRestoredProperties Struct

NormalViewRestoredProperties Members

DevExpress.Docs.Presentation Namespace