Skip to main content

PdfViewerTool Enum

Definition​

Assembly:Avalonia.Controls.PdfViewer
Package:Avalonia.Controls.PdfViewer

The tool a Avalonia.Controls.PdfViewer applies to the next pointer gesture on a page. One value covers every toolbar tool, so a host that hides the built-in toolbar can drive them through Avalonia.Controls.PdfViewer.ActiveTool and Avalonia.Controls.PdfViewer.SetToolCommand.

public enum PdfViewerTool

Inheritance: Enum -> PdfViewerTool

Fields​

NameDescription
DrawFreehand drawing.
HighlightHighlights the text that is selected or dragged over.
LinkDraws a link area.
NoneNo tool: text selection, form filling and link clicks.
NotePlaces a sticky note.
RedactRedacts the text that is selected or dragged over.
ShapeDraws the shape in Avalonia.Controls.PdfViewer.SelectedShapeType (a rectangle when none is set).
SquigglyDraws a squiggly underline under the text that is selected or dragged over.
StampPlaces a rubber stamp (the last chosen label, or the first in Avalonia.Controls.PdfViewer.StampLabels).
StrikeoutStrikes out the text that is selected or dragged over.
TextPlaces a text box.
UnderlineUnderlines the text that is selected or dragged over.

Draw Field​

Freehand drawing.

public Avalonia.Controls.PdfViewerTool Draw

Highlight Field​

Highlights the text that is selected or dragged over.

public Avalonia.Controls.PdfViewerTool Highlight

Draws a link area.

public Avalonia.Controls.PdfViewerTool Link

None Field​

No tool: text selection, form filling and link clicks.

public Avalonia.Controls.PdfViewerTool None

Note Field​

Places a sticky note.

public Avalonia.Controls.PdfViewerTool Note

Redact Field​

Redacts the text that is selected or dragged over.

public Avalonia.Controls.PdfViewerTool Redact

Shape Field​

Draws the shape in Avalonia.Controls.PdfViewer.SelectedShapeType (a rectangle when none is set).

public Avalonia.Controls.PdfViewerTool Shape

Squiggly Field​

Draws a squiggly underline under the text that is selected or dragged over.

public Avalonia.Controls.PdfViewerTool Squiggly

Stamp Field​

Places a rubber stamp (the last chosen label, or the first in Avalonia.Controls.PdfViewer.StampLabels).

public Avalonia.Controls.PdfViewerTool Stamp

Strikeout Field​

Strikes out the text that is selected or dragged over.

public Avalonia.Controls.PdfViewerTool Strikeout

Text Field​

Places a text box.

public Avalonia.Controls.PdfViewerTool Text

Underline Field​

Underlines the text that is selected or dragged over.

public Avalonia.Controls.PdfViewerTool Underline