PDFANNOTATION_Name
IPDFDocument3 :: Annotations

See Also Example
Collapse All

This property gets or sets a control or annotation name.

Syntax

BSTR PDFANNOTATION_Name { get; set; }
Value
String containing the name

Remarks

This property gets or sets the name of a control or an annotation.

Equivalent in new interface: IPDFDocument4::ControlName.

Example

Changing a Control's Name

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

See Also

Reference