PDFANNOTATION_Items
IPDFDocument3 :: Annotations

See Also Example
Collapse All

This property gets or sets the string representing a ComboBox's control items separated with "new line" symbols.

Syntax

BSTR PDFANNOTATION_Items { get; set; }
Value

String containing the current ComboBox's items separated with "new line" symbols

For example:

"Item1
Item2
Item3"

Remarks

Example

Creating a ComboBox

Delphi
[copy to clipboard]
{ PDF object is supposed to be created }
PDF.BeginDoc;
PDF.PDFPAGE_CreateControl_Combobox('ctrl1', 10, 10, 110, 23);
PDF.PDFANNOTATION_Text := 'Text';
PDF.PDFANNOTATION_Items := '111111' + #13#10 + '222222' + #13#10 + '333333';
PDF.PDFANNOTATION_EditEnabled := false;
PDF.EndDoc;
C/C++
[copy to clipboard]
// PDF object is supposed to be created
PDF->BeginDoc();
PDF->PDFPAGE_CreateControl_Combobox("ctrl1", 10, 10, 110, 23);
PDF->PDFANNOTATION_Text = "Text";
PDF->PDFANNOTATION_Items = "111111\n222222\n333333";
PDF->PDFANNOTATION_EditEnabled = FALSE;
PDF->EndDoc();
C#
[copy to clipboard]
// PDF object is supposed to be created
PDF.BeginDoc();
PDF.PDFPAGE_CreateControl_Combobox("ctrl1", 10, 10, 110, 23);
PDF.PDFANNOTATION_Text = "Text";
PDF.PDFANNOTATION_Items = "111111\n222222\n333333";
PDF.PDFANNOTATION_EditEnabled = false;
PDF.EndDoc();
Visual Basic
[copy to clipboard]
' PDF object is supposed to be created
PDF.BeginDoc
PDF.PDFPAGE_CreateControl_Combobox "ctrl1", 10, 10, 110, 23
PDF.PDFANNOTATION_Text = "Text"
PDF.PDFANNOTATION_Items = "111111" & vbCrLf & "222222" & vbCrLf & "333333"
PDF.PDFANNOTATION_EditEnabled = False
PDF.EndDoc

See Also

Reference