Selection Class (Typed) | |
Create a selection, which represents the start and end of a text selection in an edit control as an ordered pair.
Inheritance Hierarchy
Namespace:
XSharp.VO.SDK
Assembly:
XSharp.VOGUIClasses (in XSharp.VOGUIClasses.dll) Version: 2.21
Syntax The Selection type exposes the following members.
Constructors Properties
| Name | Description |
---|
| Empty |
Is the pair empty ?(both values equal to 0)
(Inherited from Pair.) |
| Finish |
A numeric value representing the finish value in a selection.
|
| Start |
A numeric value representing the finish value in a selection.
|
TopFunctions
| Name | Description |
---|
| Destroy | Free memory resources allocated for a VObject object and its derived objects. (Inherited from VObject.) |
| GetHashCode | (Inherited from Pair.) |
TopGlobals and Defines 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