Skip to main content
All docs
V24.2

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

PdfViewer.FormFieldEditorShowing Event

Occurs before the form field editor is activated.

Namespace: DevExpress.XtraPdfViewer

Assembly: DevExpress.XtraPdfViewer.v24.2.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