Obtains the alignment of the paragraph containing the insertion point in a RichTextEdit control.
RichTextEdit controls
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 |
Alignment. A value of the Alignment enumerated datatype indicating the alignment of the paragraph containing the insertion point.
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.
This examples saves the alignment setting of the paragraph that contains the insertion point:
alignment l_align
l_align = rte_1.GetAlignment()