AnnTextAlign property (Annotation Control)

C++ Builder example

Delphi example

 

Builder Syntax

unsigned AnnTextAlign[HANNOBJECT hObject]

Delphi Syntax

AnnTextAlign[hObject: HANNOBJECT]: L_UINT

Overview

Refer to Implementing Annotations.

Remarks

Gets or sets the text alignment of the specified annotation. Possible values are:

Value

Meaning

TEXT_ALIGN_LEFT

[1] Align text to left.

TEXT_ALIGN_CENTER

[2] Center the text.

TEXT_ALIGN_RIGHT

[3] Align text to the right.

This property is valid only for the following annotation objects:

image\sqrblit.gif ANNOBJECT_AUTOMATION

image\sqrblit.gif ANNOBJECT_NOTE

image\sqrblit.gif ANNOBJECT_TEXT

image\sqrblit.gif ANNOBJECT_TEXTPOINTER

You must set the AnnFlags property before setting this property. Possible values for the Flags property for this property are:

0

ANNFLAG_SELECTED

ANNFLAG_NOTTHIS

ANNFLAG_RECURSE

ANNFLAG_NOTCONTAINER

ANNFLAG_NOINVALIDATE

ANNFLAG_CHECKMENU

See Also

Elements:

AnnFlags property

Topics:

Annotations: Object Manipulation