ITerm.Text

Syntax

Text: String;

Description

The Text property determines a text of the term element.

Example

Executing the example requires a form with the Button1 button and the TermEdit component named TermEdit1.

Sub Button1OnClick(Sender: Object; Args: IMouseEventArgs);

Var

i: Integer;

Terms: ITermList;

Term: ITerm;

Begin

Terms := TermEdit1.Terms;

For i := 0 To Terms.Count - 1 Do

Term := Terms.Item(i);

Term.IsLiteral := False;

Term.Text := "Term " + i.ToString;

Term.Formula := "Formula " + i.ToString;

End For;

End Sub Button1OnClick;

After executing the example on clicking the button the text for each term consists of the word "Term", and the index of term element, and formula consists of the word "Formula" and the index of term element. The text inside the term cannot be edited because the IsLiteral property is set to False.

See also:

ITerm