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
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

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