Selects the line containing the insertion point in a RichTextEdit control.
DataWindow type |
Method applies to |
---|---|
PowerBuilder |
DataWindow control |
integer rtename.SelectTextLine ( )
Argument |
Description |
---|---|
rtename |
A reference to a DataWindow control. The DataWindow object in the DataWindow control must be a RichTextEdit DataWindow. |
Returns the number of characters selected if it succeeds and –1 if an error occurs.
If the RichTextEdit control contains a selection, the insertion point can be at the beginning or end of the selection. The way the text was selected determines the location.
If the user made the selection by dragging toward the end, then calling SelectTextLine selects the line at the end of the selection. If the user dragged back, then SelectTextLine selects the line at the beginning of the selection.
SelectTextLine does not select the line-ending characters (carriage return and linefeed).
PowerBuilder RichTextEdit control You can use the same syntax with a PowerBuilder RichText Edit control. See SelectTextLine in the PowerScript Reference.
This statement selects the current line:
dw_1.SelectTextLine()