ITreeControl.ReadOnly

Syntax

ReadOnly: Boolean;

_ReadOnly: boolean;

Description

The ReadOnly property determines whether text of elements of the TreeList component can be edited.

Comments

Available values:

NOTE. Locking of elements text editing is not applied to other interface elements. This property locks component elements text from editing only via mouse click. Elements text can be edited by means of the corresponding ITreeListNode.Text and ITreeListNode.ColumnText properties at any values of the ReadOnly property.

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;

Imports System.Windows.Forms;
Imports Prognoz.Platform.Forms.Net;

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

After executing the example, after the button is clicked, elements text editing is allowed for the TreeList component.

See also:

ITreeControl | ITreeControl.Locked