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


Return value

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

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

alignment l_align
l_align = rte_1.GetAlignment()

See also

GetSpacing

GetTextStyle

SetAlignment

SetSpacing

SetTextStyle