PDF Creator Pilot documentation |
Download CHM version of this manual. |
|
![]() ![]() Collapse AllGets or sets control or annotation name.
|
| 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


