PDFANNOTATION_ReadOnly
IPDFDocument3 :: Annotations

See Also Example
Collapse All

This property gets or sets the editable status of a control.

Syntax

VARIANT_BOOL PDFANNOTATION_ReadOnly { get; set; }
Value
VARIANT_TRUE if the annotation is read only, VARIANT_FALSE otherwise.

Remarks

If this property is set to VARIANT_TRUE, the user may not change the value of the control.

Equivalent in new interface: IPDFDocument4::IsReadOnlyControl.

Example

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