Click or drag to resize

Edit Class (Typed)

X#
Provide the base class from which all X# edit controls are subclassed.
Inheritance Hierarchy
Object
  VObject
    Control
      TextControl
        Edit
          MultiLineEdit
          SingleLineEdit

Namespace:  XSharp.VO.SDK
Assembly:  XSharp.VOGUIClasses (in XSharp.VOGUIClasses.dll) Version: 2.24 GA
Syntax
[TypesChangedAttribute]
 CLASS Edit INHERIT TextControl
Request Example View Source

The Edit type exposes the following members.

Constructors
  NameDescription
Public methodEdit
Construct an edit control.
Top
Properties
  NameDescription
Public propertyCaption
The string representing the caption of the text control.
(Overrides Caption.)
Public propertyControlType (Overrides ControlType.)
Public propertyMargins
A Dimension object specifying the left and right margins of the edit control.
Public propertyModified
A logical value indicating whether an editable control is in the process of being modified.
(Overrides Modified.)
Public propertyReadOnly
A logical value specifying the read-only state of an edit control.
(Overrides ReadOnly.)
Public propertySelectedText
A string representing the text that is currently selected in this edit control.
Public propertySelection
The position of the cursor in the edit control.
Public propertyTextLimit
A numeric value representing the maximum number of characters this edit control can hold.
Public propertyTextValue
A string representing the value held in the control.
(Overrides TextValue.)
Top
Functions
  NameDescription
Public methodCanUndo
Public methodClear
Public methodCopy
Public methodCut
Public methodFont
Change the current font of the text control.
(Overrides Font(Usual, Usual).)
Public methodPaste
Replace the current selection in this edit control with a string, if specified, or the contents of the clipboard.
Public methodUndo
Undo the last modification to the text in this edit control.
Public methodValidateControl
This method validates if the control has been created and when not then it triggers the control creation
(Overrides ValidateControl.)
Top
Remarks
The Edit class provides simple text editing facilities for entering, deleting, and selecting text. In addition, you can specify if edit controls are to have a border, whether they should be read-only, or perhaps whether they should be password protected. Edit controls in this class hierarchy treat the text they contain as a series of numbered characters. In these edit controls, a selection is an ordered pair of character numbers. For example, if an edit control contains the text "samarkand," the selection (3,7) would select the text "mark." Also, for each control, the text limit is the maximum number of characters you wish the edit to hold. The non-graphic characters for newline (Chr(10)), tab (Chr(9)), and null (Chr(0)) occupy one character position.
See Also