Skip to main content

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

PdfAnnotationOptions.AllowUnderline Property

Gets or sets whether to allow users to underline the selected text with a straight line. This is a bindable property.

Namespace: DevExpress.Maui.Pdf

Assembly: DevExpress.Maui.Pdf.dll

NuGet Package: DevExpress.Maui.Pdf

#Declaration

C#
public bool AllowUnderline { get; set; }

#Property Value

Type Description
Boolean

true if the Underline functionality is available; otherwise, false.

#Property Paths

You can access this nested property as listed below:

Object Type Path to AllowUnderline
PdfViewer
.AnnotationOptions .AllowUnderline

#Remarks

If you set the AllowUnderline property to false, the PDF viewer hides the Underline command in the selection context menu and disables the UnderlineSelectedText method functionality.

Refer to the following help topic for more information about selection and highlighting in the PDF viewer control: Select and Highlight Content in DevExpress PDF Viewer for .NET MAUI.

See Also