PdfViewerTool Enum
Definition
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
Fields
| Name | Description |
|---|---|
| Draw | Freehand drawing. |
| Highlight | Highlights the text that is selected or dragged over. |
| Link | Draws a link area. |
| None | No tool: text selection, form filling and link clicks. |
| Note | Places a sticky note. |
| Redact | Redacts the text that is selected or dragged over. |
| Shape | Draws the shape in Avalonia.Controls.PdfViewer.SelectedShapeType (a rectangle when none is set). |
| Squiggly | Draws a squiggly underline under the text that is selected or dragged over. |
| Stamp | Places a rubber stamp (the last chosen label, or the first in Avalonia.Controls.PdfViewer.StampLabels). |
| Strikeout | Strikes out the text that is selected or dragged over. |
| Text | Places a text box. |
| Underline | Underlines 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
Link Field
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