[]
Represents group of radio buttons.
public class RadioButtonField : Field, IPdfDict, IOwnedObject, ActionHide.ILinkedObject, ActionFieldsBase.IFieldDef
Initializes a new instance of the RadioButtonField class.
public RadioButtonField()
Gets or sets the default value of RadioButtonField. Default value can be specified as index of the widget in Widgets list, as string containing name of the widget.
public object DefaultValue { get; set; }
Gets or sets an array of strings containing one entry for each widget annotation, defining export values for its constituent radio buttons. See the PDF spec for details.
public string[] Opt { get; set; }
Gets or sets a value indicating whether a group of radio buttons within a radio button field that use the same value for the on state will turn on and off in unison; that is if one is checked, they are all checked. If clear, the buttons are mutually exclusive (the same behavior as HTML radio buttons).
public bool RadiosInUnison { get; set; }
Gets or sets the value of RadioButtonField. Value can be specified as index of the widget in Widgets list, as string containing name of the widget.
public object Value { get; set; }
Creates a new WidgetAnnotation and adds it to the Widgets collection.
public WidgetAnnotation AddItem(Page page, RectangleF bounds, CheckStyle checkStyle = CheckStyle.Circle, BorderStyle borderStyle = BorderStyle.Solid)
page
PageThe page on which the new WidgetAnnotation will be placed.
bounds
System.Drawing.RectangleFThe bounds of the new WidgetAnnotation on page
.
checkStyle
CheckStyleThe check mark style.
borderStyle
BorderStyleThe border style.
Returns the created WidgetAnnotation object.
Gets the name of a widget annotation's appearance stream that is used to display the widget in checked state.
In Acrobat this name is specified as "Radio Button Choice" option in the Radio Button field properties.
Note that if the Opt property is specified, then it is used in the Acrobat interface.public string GetCheckedAppearanceStreamName(WidgetAnnotation wa)
wa
WidgetAnnotationOne of WidgetAnnotations associated with this field.
The name of the widget annotation's appearance stream that is used to display the widget in checked state.
Gets the names of appearance streams of the widget annotations associated with this field that are used to display the widgets in checked state.
In Acrobat this name is specified as "Radio Button Choice" option in the Radio Button field properties.
Note that if the Opt property is specified, then it is used in the Acrobat interface.public string[] GetCheckedAppearanceStreamNames()
The names of the widget annotations' appearance streams that are used to display the widgets in checked state.
Sets the name of a widget annotation's appearance stream that will be used to display the widget in checked state.
In Acrobat this name is specified as "Radio Button Choice" option in the Radio Button field properties.
Note that if the Opt property is specified, then it is used in the Acrobat interface.public void SetCheckedAppearanceStreamName(WidgetAnnotation wa, string name)
wa
WidgetAnnotationOne of WidgetAnnotations associated with this field.
name
stringThe name of the appearance stream to use for checked state.
Sets the name of an appearance stream that will be used by the widget annotations associated with this field to display the widgets in checked state.
In Acrobat this name is specified as "Radio Button Choice" option in the Radio Button field properties.
Note that if the Opt property is specified, then it is used in the Acrobat interface.public void SetCheckedAppearanceStreamNames(string name)
name
stringThe name of the appearance stream to use for checked state.