PDF Creator Pilot documentation |
Download CHM version of this manual. |
|
![]() ![]() Collapse AllThis property gets or sets the editable status of a control.
|
| VARIANT_BOOL IsReadOnlyControl { get; set; } |
Value
VARIANT_TRUE if the control is read only (user may not change the value of the control), VARIANT_FALSE otherwise.
Example
Creating a Read-Only Control
Delphi
[copy to clipboard]
{ PDF object is supposed to be created }
PDF.AddEditBox(10, 10, 110, 30, 'txt1');
PDF.AnnotUnicodeText := 'Read only';
PDF.IsReadOnlyControl := true;
PDF.SaveToFile('test.pdf', true);
C/C++
[copy to clipboard]
// PDF object is supposed to be created
PDF->AddEditBox(10, 10, 110, 30, "txt1");
PDF->AnnotUnicodeText = "Read only";
PDF->IsReadOnlyControl = true;
PDF->SaveToFile("test.pdf", true);
C#
[copy to clipboard]
// PDF object is supposed to be created
PDF.AddEditBox(10, 10, 110, 30, "txt1");
PDF.AnnotUnicodeText = "Read only";
PDF.IsReadOnlyControl = true;
PDF.SaveToFile("test.pdf", true);
Visual Basic
[copy to clipboard]
' PDF object is supposed to be created PDF.AddEditBox 10, 10, 110, 30, "txt1" PDF.AnnotUnicodeText = "Read only" PDF.IsReadOnlyControl = true PDF.SaveToFile "test.pdf", true
See Also
Reference


