Table of Contents

Class PdfFormEvents

Namespace
nebulae.dotPDFium.Forms
Assembly
dotPDFium.dll
public sealed class PdfFormEvents
Inheritance
PdfFormEvents
Inherited Members

Properties

OnCursorChange

Invoked when the cursor should be changed (e.g., to a text beam or hand).

public Action<int>? OnCursorChange { get; set; }

Property Value

Action<int>

OnFormChanged

Invoked when a form field value or state has changed.

public Action? OnFormChanged { get; set; }

Property Value

Action

OnGetLocalTime

Provides the current system time to PDFium.

public Func<FpdfSystemTime>? OnGetLocalTime { get; set; }

Property Value

Func<FpdfSystemTime>

OnGetPage

Called when PDFium wants to retrieve a page from a document by index.

public Func<PdfDocument, int, PdfPage?>? OnGetPage { get; set; }

Property Value

Func<PdfDocument, int, PdfPage>

OnGetRotation

Called when PDFium wants to know the rotation of a given page.

public Func<PdfPage, int>? OnGetRotation { get; set; }

Property Value

Func<PdfPage, int>

OnInvalidate

Invoked when a region of a PDF page needs to be redrawn due to form updates.

public Action<PdfPage, FsRectF>? OnInvalidate { get; set; }

Property Value

Action<PdfPage, FsRectF>

OnKillTimer

Called when PDFium wants to cancel a timer.

public Action<int>? OnKillTimer { get; set; }

Property Value

Action<int>

OnOutputSelectedRect

Invoked when PDFium wants to draw a selection rectangle (e.g., for text selection).

public Action<PdfPage, FsRectF>? OnOutputSelectedRect { get; set; }

Property Value

Action<PdfPage, FsRectF>

OnRelease

Optional release callback if any resources should be cleaned up when the form environment is destroyed.

public Action? OnRelease { get; set; }

Property Value

Action

OnSetTimer

Provides a timer callback for PDFium's internal use (e.g., cursor blink). Returns a platform-defined timer ID.

public Func<int, Action, int>? OnSetTimer { get; set; }

Property Value

Func<int, Action, int>