New to Telerik UI for WinForms? Start a free 30-day trial

Coordinates editing of interactive PDF form widgets by creating temporary editors and applying their values to the document.

Definition

Namespace:Telerik.WinControls.UI

Assembly:Telerik.WinControls.PdfViewer.dll

Syntax:

C#
public class EditingFields

Inheritance: objectEditingFields

Constructors

Initializes the form-field editor helper for a PDF viewer.

C#
public EditingFields(RadPdfViewerElement pdfViewer)
Parameters:pdfViewerRadPdfViewerElement

The viewer whose document and page elements are edited.

Methods

Applies changed editor values to the form field, removes the temporary editor, and refreshes the edited page.

C#
public void FinishEditingWidget()

Marks the widget's form field as modified and refreshes its page.

C#
protected void MarkFieldAsChanged(Widget annotation, RadFixedPage page)
Parameters:annotationWidget

The widget whose field changed.

pageRadFixedPage

The page containing the widget.

Processes a form widget, opening an editor for text or choice fields and applying radio-button or checkbox changes. Passing no annotation while the pointer is over a page finishes the active edit.

C#
public void ProcessAnnotation(Annotation annot, RadFixedPage page, RadElement elementAtPoint, bool fromMouse = false, Point point = default)
Parameters:annotAnnotation

The annotation to process, or null to finish editing when over a page.

pageRadFixedPage

The page containing the annotation.

elementAtPointRadElement

The visual element under the pointer; processing occurs only for a PDF page element.

fromMousebool

true when processing a mouse interaction, which also updates the viewer's current annotation.

pointPoint

The pointer position forwarded to a newly created editor when processing a mouse interaction.