Description
Obtains the number of the character column just after the insertion point in a RichTextEdit control.
Applies to
RichTextEdit controls
Syntax
rtename.SelectedColumn ( )
Argument |
Description |
---|---|
rtename |
The name of the RichTextEdit in which you want the number of the character after the insertion point |
Return value
Long.
Returns the number of the character just after the insertion point in rtename. If an error occurs, SelectedColumn returns -1.
Usage
The insertion point can be at the beginning or end of the selection. Therefore, SelectedColumn can return the first character of the selection or the character just after the selection, depending on the position of the insertion point.
Examples
If the insertion point is positioned before the fifth character on line 8 of the RichTextEdit rte_Contact, the following example sets ll_col to 5 and ll_line to 8:
long ll_col, ll_line ll_col = rte_Contact.SelectedColumn() ll_line = rte_Contact.SelectedLine()
See also