PDF Creator Pilot documentation |
Download CHM version of this manual. |
|
![]() ![]() Collapse AllGets or sets editable status of a control.
|
| VARIANT_BOOL PDFANNOTATION_ReadOnly { get; set; } |
Value
VARIANT_TRUE if if the annotation is read only, VARIANT_FALSE otherwise.
Remarks
If the property is set to TRUE, the user may not change the value of the control.
Example
Creating an read only 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.PDFANNOTATION_ReadOnly := true;
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->PDFANNOTATION_ReadOnly = true;
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.PDFANNOTATION_ReadOnly = true;
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.PDFANNOTATION_ReadOnly = True PDF.EndDoc
See Also
Reference


