ComponentFactory.Krypton.Toolkit.PaletteSparkleBase.GetGalleryButtonImage C# (CSharp) Method

GetGalleryButtonImage() public method

Gets a check box image appropriate for the provided state.
public GetGalleryButtonImage ( PaletteRibbonGalleryButton button, PaletteState state ) : Image
button PaletteRibbonGalleryButton Enum of the button to fetch.
state PaletteState State of the button to fetch.
return Image
        public override Image GetGalleryButtonImage(PaletteRibbonGalleryButton button, PaletteState state)
        {
            switch(button)
            {
                default:
                case PaletteRibbonGalleryButton.Down:
                    if (state == PaletteState.Disabled)
                        return _disabledDropDown;
                    else
                        return _sparkleDropDownButton;
                case PaletteRibbonGalleryButton.Up:
                    if (state == PaletteState.Disabled)
                        return _disabledDropUp;
                    else
                        return _sparkleDropUpButton;
                case PaletteRibbonGalleryButton.DropDown:
                    if (state == PaletteState.Disabled)
                        return _disabledGalleryDrop;
                    else
                        return _sparkleGalleryDropButton;
            }
        }
PaletteSparkleBase