Components for Developers
© 2000-2008, Two Pilots

PDF Library Download Features Manual Tutorials FAQ Pricing HTML2PDF Add-on History In the Lab

PDF Creator Pilot documentation

Download CHM version of this manual.
Annotations
Collapse All

Gets or sets control or annotation name.

Syntax

BSTR PDFANNOTATION_Name { get; set; }
Value
Name string.

Remarks

This property sets the control or annotation name.

Analogue in new interface: IPDFDocument4::ControlName.

Example

Changing 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 Add-on History In the Lab

 

 

PDF Library | Virtual Printer | Converters to PDF

Support | Blog | Forum | Contacts

© 2000-2008, Two Pilots