Components for Developers
© 2000-2012, Two Pilots

PDF Library Download Features Manual Tutorials FAQ Pricing HTML2PDF-X Pilot History In the Lab

PDF Creator Pilot documentation

Download CHM version of this manual.
Annotations
PDFANNOTATION_Checked

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

PDF Library Download Features Manual Tutorials FAQ Pricing HTML2PDF-X Pilot History In the Lab

 

 

PDF Library | Virtual Printer | Converters to PDF

Support | Blog | Forum | Contacts

© 2000-2012, Two Pilots