Enum FormDesignerToolbarItem
Represents the available tools in the form designer toolbar of the SfPdfViewer2 component.
Namespace: Syncfusion.Blazor.SfPdfViewer
Assembly: Syncfusion.Blazor.SfPdfViewer.dll
Syntax
[JsonConverter(typeof(JsonStringEnumConverter))]
public enum FormDesignerToolbarItem
Remarks
The FormDesignerToolbarItem enumeration defines the tools that can be displayed in the form designer toolbar for creating and manipulating form fields within the PDF Viewer.
These tools allow users to interactively add or remove form fields such as text boxes, password fields, and list boxes. Use these values to configure the toolbar options based on application requirements.
Examples
The following example demonstrates how to configure the form designer toolbar with specific tools:
List<FormDesignerToolbarItem> toolbarItems = new List<FormDesignerToolbarItem>
{
FormDesignerToolbarItem.TextBox, // Enables the textbox creation tool
FormDesignerToolbarItem.Password, // Enables the password field creation tool
FormDesignerToolbarItem.Delete // Enables the delete tool
};
Fields
| Name | Description |
|---|---|
| Button | Represents the Button tool, which allows adding a button field. |
| CheckBox | Represents the CheckBox tool, which allows adding a checkbox field. |
| Delete | Represents the Delete tool, which allows deleting a form field. |
| DropDown | Represents the DropDown tool, which allows adding a dropdown field. |
| ListBox | Represents the ListBox tool, which allows adding a list box field. |
| Password | Represents the Password tool, which allows adding a password field. |
| RadioButton | Represents the RadioButton tool, which allows adding a radio button field. |
| Signature | Represents the Signature tool, which allows adding a signature field. |
| TextBox | Represents the TextBox tool, which allows adding a textbox field. |