Перейти к основному содержимому

Class BaseTreeViewExtensions

Namespace: Aspid.FastTools.UIElements
Assembly: Aspid.FastTools.dll

Provides extension methods for BaseTreeView.

public static class BaseTreeViewExtensions

Inheritance​

object ← BaseTreeViewExtensions

Methods​

AddItemExpandedChanged<T>(T, Action<TreeViewExpansionChangedArgs>)​

Subscribes to the itemExpandedChanged event.

public static T AddItemExpandedChanged<T>(this T element, Action<TreeViewExpansionChangedArgs> value) where T : BaseTreeView

Parameters​

element T

The element to modify.

value Action<TreeViewExpansionChangedArgs>

The callback to subscribe.

Returns​

T

The element, for chaining.

Type Parameters​

T

The element type.

RemoveItemExpandedChanged<T>(T, Action<TreeViewExpansionChangedArgs>)​

Unsubscribes from the itemExpandedChanged event.

public static T RemoveItemExpandedChanged<T>(this T element, Action<TreeViewExpansionChangedArgs> value) where T : BaseTreeView

Parameters​

element T

The element to modify.

value Action<TreeViewExpansionChangedArgs>

The callback to remove.

Returns​

T

The element, for chaining.

Type Parameters​

T

The element type.

SetAutoExpand<T>(T, bool)​

Sets autoExpand.

public static T SetAutoExpand<T>(this T element, bool value) where T : BaseTreeView

Parameters​

element T

The element to modify.

value bool

When true, items are expanded automatically.

Returns​

T

The element, for chaining.

Type Parameters​

T

The element type.