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

In This Topic
    ButtonImageList Property (C1TreeView)
    In This Topic
    Gets the image list that is used to indicate the state of expand buttons.
    Syntax
    'Declaration
     
    
    <EditorAttribute(C1.Win.TreeView.Design.ButtonImageListEditor, System.Drawing.Design.UITypeEditor)>
    <TypeConverterAttribute(C1.Win.TreeView.Util.ImageListConverter)>
    <C1CategoryAttribute("Appearance")>
    <DesignerSerializationVisibilityAttribute(DesignerSerializationVisibility.Content)>
    <C1DescriptionAttribute("C1TreeView.ButtonImageList", "Gets the image list that is used to indicate the state of expand buttons.")>
    Public ReadOnly Property ButtonImageList As ImageList
    [Editor(C1.Win.TreeView.Design.ButtonImageListEditor, System.Drawing.Design.UITypeEditor)]
    [TypeConverter(C1.Win.TreeView.Util.ImageListConverter)]
    [C1Category("Appearance")]
    [DesignerSerializationVisibility(DesignerSerializationVisibility.Content)]
    [C1Description("C1TreeView.ButtonImageList", "Gets the image list that is used to indicate the state of expand buttons.")]
    public ImageList ButtonImageList {get;}
    Remarks
    When the ButtonImageList property is set, each C1TreeNode that is contained in the C1TreeView displays the first and second images from the ButtonImageList to indicate an expaneded or collapsed state, respectively. Additionally the C1TreeView can displays the eight state of expand button if the ButtonImageList property contains eight images with keys: CollapsedNormal, CollapsedHot, CollapsedPressed, CollapsedDisabled, ExpandedNormal, ExpandedHot, ExpandedPressed, ExpandedDisabled.
    See Also