Skip to main content
All docs
V24.2

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

PdfCommentViewerSettings.CommentViewerInitialState Property

Gets or sets the comment viewer visible state after loading a PDF document that contains annotations. This is a dependency property.

Namespace: DevExpress.Xpf.PdfViewer

Assembly: DevExpress.Xpf.PdfViewer.v24.2.dll

NuGet Package: DevExpress.Wpf.PdfViewer

#Declaration

public PdfCommentViewerState? CommentViewerInitialState { get; set; }

#Property Value

Type Description
Nullable<PdfCommentViewerState>

One of the PdfCommentViewerState values. The default value is Null.

Available values:

Name Description
Collapsed

The comment viewer is collapsed.

Visible

The comment viewer is visible.

Expanded

The comment viewer is expanded.

#Property Paths

You can access this nested property as listed below:

Object Type Path to CommentViewerInitialState
PdfViewerControl
.ActualCommentViewerSettings .CommentViewerInitialState
PdfViewerControl
.CommentViewerSettings .CommentViewerInitialState

#Remarks

Use the CommentViewerInitialState property to specify the initial visible state of an attachments viewer after loading a PDF document with an attached file.

If the CommentViewerInitialState property is set to Null (the default value), the PdfCommentViewerSettings.CommentViewerState property’s value is Collapsed.

See Also