Skip to main content

PdfAnnotationErrorEventArgs Class

Definition

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

Event arguments describing an annotation operation that failed.

public class PdfAnnotationErrorEventArgs

Inheritance: EventArgs -> 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

NameDescription
PdfAnnotationErrorEventArgsInitializes 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

NameDescription
ExceptionGets the underlying exception that caused the failure, or .
MessageGets a human-readable description of the failure.
OperationGets 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; }