ITabEditor.Text

Syntax

Text: String;

Description

The Text property returns text currently specified in cell editor.

Example

Executing the example requires a form, the TabSheetBox component named TabSheetBox1 and located on this form, and a data source for TabSheetBox1. Generation of the event related to cell editing is enabled for the table displayed in TabSheetBox1. This procedure handles OnEditorTextChanged event for TabSheetBox1 component.

    Sub TabSheetBox1OnEditorTextChanged(Sender: Object; Args: ITabEditorEventArgs);
    Var
        Editor: ITabEditor;
    Begin
        Editor := Args.Editor;
        Debug.WriteLine("Edited cell: " + Editor.Sheet.Cell(Editor.Row, Editor.Column).Address);
        Debug.WriteLine("Current text:" + Editor.Text);
        Debug.WriteLine("Current formatted text:" + Editor.XamlText);
    End Sub TabSheetBox1OnEditorTextChanged;

If an event occurs, the development environment console displays information on currently edited cell, as well as current entered text and formatted text.

See also:

ITabEditor