PDFANNOTATION_Checked
IPDFDocument3 :: Annotations

See Also Example
Collapse All

This property gets or sets the value indicating checked state of controls.

Syntax

VARIANT_BOOL PDFANNOTATION_Checked { get; set; }
Value
VARIANT_TRUE if the control is checked, VARIANT_FALSE otherwise.

Remarks

This property returns the checked state for a Checkbox and Radio button control.

Equivalent in new interface: IPDFDocument4::ControlChecked.

Example

Setting the Checked Property

Delphi
[copy to clipboard]
{ PDF object is supposed to be created }
PDF.BeginDoc;
PDF.PDFPAGE_CreateControl_Checkbox('ch1', 10, 10, 110, 23);
PDF.PDFANNOTATION_Caption := 'Caption1';
PDF.PDFANNOTATION_Checked := true;
PDF.PDFPAGE_CreateControl_Checkbox('ch2', 10, 25, 110, 38);
PDF.PDFANNOTATION_Caption := 'Caption2';
PDF.PDFANNOTATION_Checked := false;
PDF.EndDoc;
C/C++
[copy to clipboard]
// PDF object is supposed to be created
PDF->BeginDoc();
PDF->PDFPAGE_CreateControl_Checkbox("ch1", 10, 10, 110, 23);
PDF->PDFANNOTATION_Caption = "Caption1";
PDF->PDFANNOTATION_Checked = true;
PDF->PDFPAGE_CreateControl_Checkbox("ch2", 10, 25, 110, 38);
PDF->PDFANNOTATION_Caption = "Caption2";
PDF->PDFANNOTATION_Checked = false;
PDF->EndDoc();
C#
[copy to clipboard]
// PDF object is supposed to be created
PDF.BeginDoc();
PDF.PDFPAGE_CreateControl_Checkbox("ch1", 10, 10, 110, 23);
PDF.PDFANNOTATION_Caption = "Caption1";
PDF.PDFANNOTATION_Checked = true;
PDF.PDFPAGE_CreateControl_Checkbox("ch2", 10, 25, 110, 38);
PDF.PDFANNOTATION_Caption = "Caption2";
PDF.PDFANNOTATION_Checked = false;
PDF.EndDoc();
Visual Basic
[copy to clipboard]
' PDF object is supposed to be created
PDF.BeginDoc
PDF.PDFPAGE_CreateControl_Checkbox "ch1", 10, 10, 110, 23
PDF.PDFANNOTATION_Caption = "Caption1"
PDF.PDFANNOTATION_Checked = True
PDF.PDFPAGE_CreateControl_Checkbox "ch2", 10, 25, 110, 38
PDF.PDFANNOTATION_Caption = "Caption2"
PDF.PDFANNOTATION_Checked = False
PDF.EndDoc

See Also

Reference