AnnTextAlign property (ILEADRasterAnnotation)

Visual Basic example

Visual C++ 5.0 example

 

Syntax

long AnnTextAlign (long hObject);

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 ANN_OBJECT_AUTOMATION

image\sqrblit.gif ANN_OBJECT_NOTE

image\sqrblit.gif ANN_OBJECT_TEXT

image\sqrblit.gif ANN_OBJECT_TEXTPOINTER

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

0

ANN_FLAG_SELECTED

ANN_FLAG_NOTTHIS

ANN_FLAG_RECURSE

ANN_FLAG_NOTCONTAINER

ANN_FLAG_NOINVALIDATE

ANN_FLAG_CHECKMENU

To determine whether an error has occurred, check the AnnError property.

See Also

Elements:

AnnAutoSnapCursor property, AnnTextEdit method, Flags property

Topics:

Annotations (Document/Medical only): Object Manipulation