TreeList.State Property
Gets the control’s current state.
Namespace: DevExpress.XtraTreeList
Assembly: DevExpress.XtraTreeList.v24.2.dll
NuGet Packages: DevExpress.Win.Navigation, DevExpress.Win.TreeList
#Declaration
[Browsable(false)]
public TreeListState State { get; }
#Property Value
Type | Description |
---|---|
Tree |
A Tree |
Available values:
Name | Description |
---|---|
Regular | The Tree List is in its normal state. No specific action is being performed by an end-user. |
Column |
A column’s header is being dragged. The column’s Tree |
Column |
A column’s right edge is being dragged to change the column’s width. The column’s Tree |
Column |
A column’s header is pressed. |
Column |
The column button is clicked. |
Editing | A cell editor is currently active. |
Outer |
An external object, not one of the Tree List’s elements, is being dragged from outside over the Tree List control. |
Node |
A node is currently pressed. |
Node |
A node is being dragged. See Tree |
Node |
A node is being resized by an end-user. This implies that the node’s edge is being dragged. This operation is only available for nodes whose Tree You can prevent the node from being resized by enabling the Tree |
Design | The Tree List is currently in design mode. |
Multi |
Multiple nodes are being selected using drag and drop. The Tree |
Incremental |
An incremental search is being performed. |
Band |
A band’s header is pressed. |
Band |
A band’s header is being dragged. The band’s Options |
Band |
A band’s right edge is being dragged to change the band’s width. The band’s Options |
Band |
The band button is clicked. |
Cell |
Multiple cells are being selected. |
#Remarks
Use this property to determine which action is being performed by an end-user. Refer to the TreeListState enumeration description, for a list of all available states.
An example of using the State property can include suspension of a given operation until the end-user completes an action against the Tree List. For instance, you may need to display a notification message and suspend it, if the user is performing a dragging operation at a given moment in time.