PDFANNOTATION_Justification
IPDFDocument3 :: Annotations

See Also Example
Collapse All

This property gets or sets justification for the edit control.

Syntax

TxHorJust PDFANNOTATION_Justification { get; set; }
Value
One of the TxHorJust values

Remarks

Each Edit control can be configured for entering text with a specified justification.

Equivalent in new interface: IPDFDocument4::ControlTextAlign.

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_Justification := hjCenter;
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_Justification = hjCenter;
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_Justification = TxHorJust.hjCenter;
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_Justification = 1 'hjCenter
PDF.EndDoc

See Also

Reference