TX Text Control ActiveX

Text Fields

Topic

Marked text fields are ranges of text in a TXTextControl document that carry an identifier and can hold data of their own. The members below insert, find, delete and highlight fields, read and set their text and data and report when the user creates, clicks, enters or leaves a field.

Properties

MemberDescription
TXTextControl.FieldAtInputPosReturns the field identifier of the field containing the input position.
TXTextControl.FieldChangeableSpecifies if the contents of a marked text field can be changed by the user.
TXTextControl.FieldCurrentReturns or sets the identifier of the current marked text field for the Fieldxxx properties, methods and events.
TXTextControl.FieldDataThis property relates numeric or string data to a marked text field.
TXTextControl.FieldDeleteableSpecifies whether a marked text field can be deleted by the user.
TXTextControl.FieldDescriptiveTextDefines a descriptive text for a hyperlink or form field.
TXTextControl.FieldEditAttrThis property returns or sets attributes for advanced editing inside marked text fields.
TXTextControl.FieldEndReturns the end position of a marked text field.
TXTextControl.FieldHighlightColorThis property returns or sets the highlight color of a text field.
TXTextControl.FieldHighlightModeThis property returns or sets the highlight mode of a text field.
TXTextControl.FieldHighlightTransparencyThis property returns or sets the transparency of a text field's highlight color.
TXTextControl.FieldLinkTargetMarkersGets or sets a value indicating that markers for hypertext targets are shown or not.
TXTextControl.FieldPosXReturns the horizontal position of a marked text field.
TXTextControl.FieldPosYReturns the vertical position of a marked text field.
TXTextControl.FieldStartSpecifies the start position of a marked text field.
TXTextControl.FieldTextReturns or sets the text which is contained within a marked text field.

Methods

MemberDescription
TXTextControl.FieldDeleteDeletes the marked text field specified by the FieldCurrent property, or changes it to simple text.
TXTextControl.FieldGotoSets the current input position to the beginning of the specified marked text field and scrolls the text so that this position is at the top of the control's visible text.
TXTextControl.FieldInsertInserts a new marked text field at the current caret position.
TXTextControl.FieldNextThis method returns the identifier of the marked text field that follows the specified field in the TXTextControl's current text.
TXTextControl.FieldSetInputPosIf the current text input position is a position at the beginning or at the end of a marked text field with a doubled input position, this method can be used to define whether the position is inside or outside the field.

Events

MemberDescription
TXTextControl.FieldChangedOccurs when the text of a marked text field has been changed.
TXTextControl.FieldClickedOccurs when a marked text field has been clicked on.
TXTextControl.FieldCreatedOccurs when a marked text field has been pasted from the clipboard.
TXTextControl.FieldDblClickedOccurs when a marked text field has been double-clicked on.
TXTextControl.FieldDeletedOccurs when a marked text field has been deleted.
TXTextControl.FieldEnteredOccurs when the current input position, indicated by the caret, has been moved to a position that belongs to a marked text field.
TXTextControl.FieldLeftOccurs when the current input position indicated by the caret has been moved to a position that does not belong to the marked text field at the previous input position.
TXTextControl.FieldSetCursorOccurs when the cursor is moved over a marked text field.