Skip to main content

PdfViewerCommands.SelectPreviousAnnotation Property

Returns the command that selects the previous annotation in the current document.

Namespace: DevExpress.Maui.Pdf

Assembly: DevExpress.Maui.Pdf.dll

NuGet Package: DevExpress.Maui.Pdf

Declaration

public Command SelectPreviousAnnotation { get; }

Property Value

Type Description
Command

A command that selects the previous annotation in the document.

Remarks

The PDF viewer stores all document annotations in the Annotations collection. Once you or a user adds a new annotation, the PDF Viewer control re-sorts the Annotations collection to insert this annotation according to its position in the document. SelectPreviousAnnotation changes the focus to the previous annotation in the document and therefore in the Annotation collection. SelectPreviousAnnotation is disabled when you sequentially call SelectPreviousAnnotation to iterate through annotations and reach the first annotation in the document.

If no annotations are selected in the PDF viewer, the SelectPreviousAnnotation method selects the last annotation on the previous page. The PdfViewer.CurrentPageNumber property returns the index of the current page.

To select the next annotation, use the SelectNextAnnotation command.

For more information about annotations, refer to the following help topic: Add Annotations in the DevExpress PDF Viewer for .NET MAUI.

See Also