Apitron.PDF.Kit library for .NET
Assembly: Apitron.PDF.Kit (in Apitron.PDF.Kit.dll) Version: 2.0.37.0 (2.0.37.0)
Initializes a new instance of the PushbuttonField class.
Namespace: Apitron.PDF.Kit.Interactive.Forms
Assembly: Apitron.PDF.Kit (in Apitron.PDF.Kit.dll) Version: 2.0.37.0 (2.0.37.0)
Syntax
Parameters
- fieldName
- Type: SystemString
Name of the field. - caption
- Type: SystemString
The caption. - toolTip (Optional)
- Type: SystemString
The tool tip.
Examples
C#
PushbuttonField pushbuttonField = new PushbuttonField("hide_btn", "Hide field"); PushbuttonFieldView pushbuttonFieldView = new PushbuttonFieldView(pushbuttonField, new Boundary(10, 500, 110, 530)); TextField textField = new TextField("hide_txt", "This will be hided"); TextFieldView textFieldView = new TextFieldView(textField, new Boundary(120, 500, 220, 530)); document.AcroForm.Fields.Add("hide_btn"); document.AcroForm.Fields.Add("hide_txt"); pushbuttonFieldView.Action = new HideAction(true, textFieldView); textFieldView.BorderColor = new double[] { 0.3, 0.1, 0.4 }; textFieldView.BorderStyle = new AnnotationBorderStyle(2, AnnotationBorderType.Inset); page.Annotations.Add(pushbuttonFieldView); page.Annotations.Add(textFieldView);
See Also