TreeView for WinForms | ComponentOne
C1.Win.TreeView Namespace / C1TreeView Class / ExpandButtonBehavior Property

In This Topic
    ExpandButtonBehavior Property (C1TreeView)
    In This Topic
    Gets or sets a value that specifies the behavior of the C1TreeView when the expand button is clicked.
    Syntax
    'Declaration
     
    
    <C1CategoryAttribute("Behavior")>
    <DefaultValueAttribute(Mono.Cecil.CustomAttributeArgument)>
    <C1DescriptionAttribute("C1TreeView.ExpandButtonBehavior", "The value that specifies the behavior of the C1TreeView when the expand button is clicked.")>
    Public Property ExpandButtonBehavior As ExpandButtonBehavior
    [C1Category("Behavior")]
    [DefaultValue(Mono.Cecil.CustomAttributeArgument)]
    [C1Description("C1TreeView.ExpandButtonBehavior", "The value that specifies the behavior of the C1TreeView when the expand button is clicked.")]
    public ExpandButtonBehavior ExpandButtonBehavior {get; set;}
    Remarks
    • The C1TreeView collapses and expands a node on the MouseUp event.
    • The C1TreeView collapses and expands a node on the MouseDown event.

    If you want to use MS TreeView like behavior, then set the value to MouseDown.

    See Also