Back to Devexpress

PdfViewer.SquiggleSelectedText(Color) Method

maui-devexpress-dot-maui-dot-pdf-dot-pdfviewer-dot-squiggleselectedtext-x28-microsoft-dot-maui-dot-graphics-dot-color-x29.md

latest2.3 KB
Original Source

PdfViewer.SquiggleSelectedText(Color) Method

Underlines selected text with a squiggle line.

Namespace : DevExpress.Maui.Pdf

Assembly : DevExpress.Maui.Pdf.dll

NuGet Package : DevExpress.Maui.Pdf

Declaration

csharp
public void SquiggleSelectedText(
    Color color = null
)

Optional Parameters

NameTypeDefaultDescription
colorColornull

The line color.

|

Remarks

The following code snippet underlines selected text with a wavy line on button tap:

csharp
private void DXButton_Clicked(object sender, EventArgs e) {
    pdfViewer.SquiggleSelectedText(Color.FromArgb("ff7200"));
}

The SquiggleSelectedText method does not automatically save changes to the document. To invoke the system Save File dialog to allow users to save the current document to the file system, call the PdfViewer.ShowSaveFileDialogAsync method or the PdfViewerCommands.ShowSaveFileDialog command. Users can also save documents in the Share UI. To invoke it, call the PdfViewer.ShareDocumentAsync method or the PdfViewerCommands.ShareDocument command. Call the PdfViewer.SaveDocumentAsync method to save the current document to a stream.

You can also use the PdfViewerCommands.SquiggleSelectedText command to highlight selected text.

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

PdfViewer Class

PdfViewer Members

DevExpress.Maui.Pdf Namespace