ComponentFactory.Krypton.Toolkit.LabelValues.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 Image GetImage(PaletteState state)
        {
            return Image;
        }

Usage Example

Beispiel #1
0
 /// <summary>
 /// Gets the content image.
 /// </summary>
 /// <param name="state">The state for which the image is needed.</param>
 /// <returns>Image value.</returns>
 public Image GetImage(PaletteState state)
 {
     if (KryptonCommand != null)
     {
         return(KryptonCommand.ImageSmall);
     }
     else
     {
         return(_labelValues.GetImage(state));
     }
 }