PTCheckBoxWidget
@interface PTCheckBoxWidget : PTWidget
An object representing a check box used in a PDF Form.
-
Creates a Check Box Widget annotation and initialize it using given Cos/SDF object.
Note: The constructor does not copy any data, but is instead the logical equivalent of a type cast.
Parameters
dthe object to use to initialize the Check Box Widget
-
Undocumented
Declaration
Objective-C
- (instancetype)init;Swift
init!() -
Creates a new Check Box Widget annotation, in the specified document.
Declaration
Parameters
docThe document to which the annotation is to be added.
posA rectangle specifying the annotation’s bounds, specified in user space coordinates.
field_nameThe name of the field for which to create a CheckBox widget.
Return Value
A newly created blank Check Box Widget annotation.
-
Creates a new Check Box Widget annotation, in the specified document.
Declaration
Parameters
docThe document to which the annotation is to be added.
posA rectangle specifying the annotation’s bounds, specified in user space coordinates.
fieldthe field for which to create a CheckBox widget
Return Value
A newly created blank Check Box Widget annotation.
-
Returns whether the checkbox is checked.
Declaration
Objective-C
- (BOOL)IsChecked;Swift
func isChecked() -> BoolReturn Value
A boolean value indicating whether the checkbox is checked.
-
Check or uncheck the Check Box Widget
Declaration
Objective-C
- (void)SetChecked:(BOOL)checked;Swift
func setChecked(_ checked: Bool)Parameters
valueIf true, the annotation should be checked. Otherwise it should be unchecked.
PTCheckBoxWidget Class Reference