ComponentFactory.Krypton.Toolkit.PaletteRedirectTreeView.GetTreeViewImage C# (CSharp) Method

GetTreeViewImage() public method

Gets a tree view image appropriate for the provided state.
public GetTreeViewImage ( bool expanded ) : Image
expanded bool Is the node expanded
return Image
        public override Image GetTreeViewImage(bool expanded)
        {
            Image retImage = null;

            if (expanded)
                retImage = _plusMinusImages.Minus;
            else
                retImage = _plusMinusImages.Plus;

            // Not found, then inherit from target
            if (retImage == null)
                retImage = Target.GetTreeViewImage(expanded);

            return retImage;
        }