PDFANNOTATION_Text
IPDFDocument3 :: Annotations

See Also Example
Collapse All

This property gets or sets the text value for ComboBox, edit control or TextAnnotation controls.

Syntax

BSTR PDFANNOTATION_Text { get; set; }
Value
Text string

Remarks

This property indicates the default text string for an edit control, the currently selected option for a ComboBox, or the pop-up text in a TextAnnotation window. For TextAnnotation controls, carriage returns may be used to separate the text into paragraphs.

Equivalent in new interface: IPDFDocument4::SetAnnotText, IPDFDocument4::AnnotUnicodeText.

Example

Creating an Edit Box

Delphi
[copy to clipboard]
{ PDF object is supposed to be created }
PDF.BeginDoc;
PDF.PDFPAGE_CreateControl_Edit('edt1', 10, 10, 110, 23);
PDF.PDFANNOTATION_Text := 'Text';
PDF.EndDoc;
C/C++
[copy to clipboard]
// PDF object is supposed to be created
PDF->BeginDoc();
PDF->PDFPAGE_CreateControl_Edit("edt1", 10, 10, 110, 23);
PDF->PDFANNOTATION_Text = "Text";
PDF->EndDoc();
C#
[copy to clipboard]
// PDF object is supposed to be created
PDF.BeginDoc();
PDF.PDFPAGE_CreateControl_Edit("edt1", 10, 10, 110, 23);
PDF.PDFANNOTATION_Text = "Text";
PDF.EndDoc();
Visual Basic
[copy to clipboard]
' PDF object is supposed to be created
PDF.BeginDoc
PDF.PDFPAGE_CreateControl_Edit "edt1", 10, 10, 110, 23
PDF.PDFANNOTATION_Text = "Text"
PDF.EndDoc

See Also

Reference