ComponentFactory.Krypton.Ribbon.ViewDrawRibbonGalleryItem.GetImage C# (CSharp) Method

GetImage() public method

Gets the content image.
public GetImage ( PaletteState state ) : Image
state PaletteState The state for which the image is needed.
return Image
        public virtual Image GetImage(PaletteState state)
        {
            // Cache image so we do not copy it every time it is requested
               if ((_image == null) && (_imageList != null) && (_imageIndex >= 0))
                _image = _imageList.Images[_imageIndex];

            return _image;
        }