ITabEditor.Text

Fore Syntax

Text: String;

Fore.NET Syntax

Text: String;

Description

The Text property returns text currently specified in cell editor.

Fore Example

To execute the example a form, the TabSheetBox component named TabSheetBox1 placed on this form, and a data source for TabSheetBox1 are required. 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.

Fore.NET Example

To execute the example a form, the TabSheetBoxNet component named TabSheetBoxNet1 placed on this form, and a data source for TabSheetBoxNet1 are required. Generation of the event related to cell editing is enabled for the table displayed in TabSheetBoxNet1. The procedure handles the OnEditorTextChanged event for the TabSheetBoxNet1 component.

Imports System.Diagnostics;
Imports Prognoz.Platform.Interop.Tab;

    Private Sub tabSheetBoxNet1_OnEditorTextChanged(Sender: System.Object; Args: Prognoz.Platform.Interop.Tab.TabEditorEventArgs);
    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;

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