Selection Class | |
Create a selection, which represents the start and end of a text selection in an edit control as an ordered pair.
Inheritance Hierarchy
Namespace:
VO
Assembly:
VOGUIClasses (in VOGUIClasses.dll) Version: 2.19
Syntax The Selection type exposes the following members.
Constructors Properties
| Name | Description |
---|
| Finish |
A numeric value representing the finish value in a selection.
|
| Start |
A numeric value representing the start value in a selection.
|
TopMethods
| Name | Description |
---|
| Destroy | Free memory resources allocated for a VObject object and its derived objects. (Inherited from VObject.) |
TopFields Remarks
Selections are used in edit controls (i.e., by the Edit and EditWindow classes). The start of a selection is the position in the edit control of the first character that is included in the selection. The finish is the position of the first character not in the selection. For example, to specify the text from position 5 through 9 inclusive, you would give a value of Selection{5,10}.
To select all the characters in an edit control (such as a single-line edit control), you would specify a value of Selection{0,-1}.
If the start and finish points are the same, the selection refers to a cursor position. For example, the cursor position in front of the fifth character would be referred to as Selection{5,5}.
See Also