ITreeControl.ReadOnly

Syntax

ReadOnly: Boolean;

_ReadOnly: boolean;

Description

The ReadOnly property determines whether element text can be edited.

Comments

Available values:

NOTE. Editing of other interface elements is not denied.

Example

Executing the example requires that the from contains the Button component named Button1 and the TreeList component named TreeList1 (for Fore.NET example use the TreeListNet component named TreeListNet1.

Add links to the system assemblies:

Sub Button1OnClick(Sender: Object; Args: IMouseEventArgs);
Begin
    
TreeList1.ReadOnly := False;
End Sub Button1OnClick;

Private Sub button1_Click(sender: System.Object; e: System.EventArgs);
Begin
    TreeListNet1._ReadOnly:= 
True;
End Sub;

As a result of example execution, after clicking the button for the TreeList component it will be allowed to edit element text.

See also:

ITreeControl | ITreeControl.Locked