PDFANNOTATION_IsPassword
IPDFDocument3 :: Annotations

See Also Example
Collapse All

This property gets or sets the value indicating if the edit control is to be used for secure data entry.

Syntax

VARIANT_BOOL PDFANNOTATION_IsPassword { get; set; }
Value
VARIANT_TRUE if if the edit control is for secure data entry, VARIANT_FALSE otherwise.

Remarks

If set to VARIANT_TRUE, the field is intended for entering a secure password that should not be echoed visibly to the screen. Characters typed from the keyboard should be echoed in some unreadable form, such as asterisks or bullet characters.

Equivalent in new interface: IPDFDocument4::IsPasswordEditBox.

Example

Creating an 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_IsPassword := 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_IsPassword = 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_IsPassword = 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_IsPassword = True
PDF.EndDoc

See Also

Reference