Back to Devexpress

ViewProperties.ActiveViewType Property

officefileapi-devexpress-dot-docs-dot-presentation-dot-viewproperties.md

latest4.3 KB
Original Source

ViewProperties.ActiveViewType Property

Gets or sets the preferred initial view type of the presentation. This property does not guarantee that the presentation application displays the presentation in this view.

Namespace : DevExpress.Docs.Presentation

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

NuGet Package : DevExpress.Docs.Presentation

Declaration

csharp
public ViewType ActiveViewType { get; set; }
vb
Public Property ActiveViewType As ViewType

Property Value

TypeDescription
ViewType

The type of the preferred initial view that the application displays when a user opens the presentation.

|

Available values:

NameDescription
NormalSlideView

Normal Slide View

| | SlideMasterView |

Slide Master View

| | NotesView |

Notes View

| | HandoutView |

Handout View

| | NotesMasterView |

Notes Master View

| | OutlineView |

Outline View

| | SlideSorterView |

Slide Sorter View

| | SlideThumbnailView |

Slide Thumbnail View. In presentation software, this view is generally managed as part of the NormalSlideView.

|

Remarks

The following code snippet defines the view that an application displays when a user open the presenation:

csharp
using (Presentation presentation = new Presentation("document.pptx")) {
    presentation.ViewProperties.ActiveViewType = ViewType.HandoutView;
}
vb
Using presentation As New Presentation("document.pptx")
    presentation.ViewProperties.ActiveViewType = ViewType.HandoutView
End Using

See Also

ViewProperties Class

ViewProperties Members

DevExpress.Docs.Presentation Namespace