Click or drag to resize

Selection Class

X#
Create a selection, which represents the start and end of a text selection in an edit control as an ordered pair.
Inheritance Hierarchy
Object
  VObject
    Pair
      Selection

Namespace:  VO
Assembly:  VOGUIClasses (in VOGUIClasses.dll) Version: 2.19
Syntax
 CLASS Selection INHERIT Pair
Request Example View Source

The Selection type exposes the following members.

Constructors
  NameDescription
Public methodSelection
Construct a selection.
Top
Properties
  NameDescription
Public propertyFinish
A numeric value representing the finish value in a selection.
Public propertyStart
A numeric value representing the start value in a selection.
Top
Methods
  NameDescription
Public methodDestroy
Free memory resources allocated for a VObject object and its derived objects.
(Inherited from VObject.)
Top
Fields
  NameDescription
Public fieldoCargo
Cargo slot.
(Inherited from VObject.)
Top
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

Reference