GetAlignment

Description

Obtains the alignment of the paragraph containing the insertion point in a RichTextEdit control.

Applies to

RichTextEdit controls

Syntax

rtename.GetAlignment ( )

Argument

Description

rtename

The name of the RichTextEdit control in which you want to find out the alignment of the paragraph containing the insertion point

Returns

Alignment. A value of the Alignment enumerated datatype indicating the alignment of the paragraph containing the insertion point.

Usage

When several paragraphs are selected, the insertion point is at the beginning or end of the selection, depending on how the user made the selection. The value reported depends on the location of the insertion point.

Examples

Example 1

This examples saves the alignment setting of the paragraph that contains the insertion point:

alignment l_align

l_align = rte_1.GetAlignment()

See also