PdfViewer.FormFieldEditorShowing Event
In This Article
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 Cancel |
Field |
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