New to Telerik Document ProcessingStart a free 30-day trial

PushButtonField Class

Updated on Jun 3, 2026

The PushButtonField class corresponds to the FormFieldType.PushButton enum value and represents a simple button that you can click with the mouse. This is the only field that does not preserve any data. It is typically used to execute an action on mouse click. For the actions supported by RadPdfProcessing, see the Links article.

Properties

PushButtonField provides a single property called Widgets. It represents the collection of Widget annotations, which visualize the field on the PDF pages. You can add and remove widgets from the collection with the AddWidget() and Remove() methods. The widget collection implements the IEnumerable interface, so you can iterate the available widget instances.

Example 1: Create a PushButtonField and add it to a page

C#
PushButtonField pushButtonField = new PushButtonField("SamplePushButton");

PushButtonWidget widget = pushButtonField.Widgets.AddWidget();
widget.Rect = new Rect(0, 0, 250, 50);
widget.HighlightingMode = HighlightingMode.InvertBorderOfAnnotationRectangle;

widget.AppearanceCharacteristics.Background = new RgbColor(123, 165, 134);
widget.AppearanceCharacteristics.NormalCaption = "Click here";

widget.TextProperties.FontSize = 20;
widget.TextProperties.Font = FontsRepository.Courier;
widget.TextProperties.Fill = new RgbColor(0, 0, 0);
widget.RecalculateContent();

document.AcroForm.FormFields.Add(pushButtonField);
document.Pages[0].Annotations.Add(widget);

In .NET Standard/.NET (Target OS: None) environments, fonts beyond the 14 standard ones require a FontsProvider implementation to be resolved correctly.

See Also

In this article
PropertiesSee Also
Not finding the help you need?
Contact Support