Obtains the line spacing of the paragraph containing the insertion point in a RichTextEdit control.
RichTextEdit controls
rtename.GetSpacing ( )
Argument |
Description |
---|---|
rtename |
The name of the RichTextEdit control in which you want to find out the line spacing of the paragraph containing the insertion point |
Spacing. A value of the Spacing enumerated datatype indicating the line spacing of the paragraph containing the insertion point.
When the user selects several paragraphs, 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 example stores a value of the enumerated datatype spacing in the variable l_spacing. The value is the spacing for the paragraph with the insertion point:
spacing l_spacing
l_spacing = rte_1.GetSpacing()