PdfAnnotationErrorEventArgs Class
Definition
Event arguments describing an annotation operation that failed.
public class PdfAnnotationErrorEventArgs
Remarks
These failures are user-visible in effect — a shape the user drew does not appear, a delete does nothing — so they are reported rather than logged and forgotten. Handle Avalonia.Controls.PdfViewer.AnnotationError to surface them in the host's own error UI.
Constructors
| Name | Description |
|---|---|
| PdfAnnotationErrorEventArgs | Initializes a new instance of the Avalonia.Controls.PdfAnnotationErrorEventArgs class. |
PdfAnnotationErrorEventArgs Constructor
Initializes a new instance of the Avalonia.Controls.PdfAnnotationErrorEventArgs class.
public PdfAnnotationErrorEventArgs(Avalonia.Controls.PdfAnnotationOperation operation, string message, Exception exception)
Parameters
operation Avalonia.Controls.PdfAnnotationOperation
The operation that failed.
message string
A human-readable description of the failure.
exception Exception
The underlying exception, if any.
Properties
| Name | Description |
|---|---|
| Exception | Gets the underlying exception that caused the failure, or . |
| Message | Gets a human-readable description of the failure. |
| Operation | Gets the annotation operation that failed. |
Exception Property
Gets the underlying exception that caused the failure, or .
public Exception Exception { get; set; }
Message Property
Gets a human-readable description of the failure.
public string Message { get; set; }
Operation Property
Gets the annotation operation that failed.
public Avalonia.Controls.PdfAnnotationOperation Operation { get; set; }