Skip to main content
A newer version of this page is available. .
All docs
V22.1

PdfViewer.FormFieldEditorShowing Event

Occurs before the form field editor is activated.

Namespace: DevExpress.XtraPdfViewer

Assembly: DevExpress.XtraPdfViewer.v22.1.dll

NuGet Package: DevExpress.Win.PdfViewer

Declaration

public event PdfFormFieldEditorShowingEventHandler FormFieldEditorShowing

Event Data

The FormFieldEditorShowing event's data class is PdfFormFieldEditorShowingEventArgs. The following properties provide information specific to this event:

Property Description
Cancel Gets or sets a value indicating whether the event should be canceled. Inherited from CancelEventArgs.
FieldName Gets the form field name.
Value Retrieves the form field value.

Remarks

Handle the FormFieldEditorShowing event to obtain the form field’s value before the editor is opened and cancel editing if necessary.

The code sample below shows how to disable a form field editor with a specific name:

using DevExpress.XtraPdfViewer;

private void PdfViewer_FormFieldEditorShowing(object sender, PdfFormFieldEditorShowingEventArgs e)
{
    if (e.FieldName == "Field1")
        e.Cancel= true;
}
See Also