ComponentFactory.Krypton.Toolkit.PaletteContent.GetContentShortTextColor1 C# (CSharp) Method

GetContentShortTextColor1() public method

Gets the first color for the short text.
public GetContentShortTextColor1 ( PaletteState state ) : Color
state PaletteState Palette value should be applicable to this state.
return Color
        public Color GetContentShortTextColor1(PaletteState state)
        {
            if (ShortText.Color1 != Color.Empty)
                return ShortText.Color1;
            else
                return _inherit.GetContentShortTextColor1(state);
        }

Usage Example

Beispiel #1
0
 /// <summary>
 /// Gets the first back color for the long text.
 /// </summary>
 /// <param name="style">Content style.</param>
 /// <param name="state">Palette value should be applicable to this state.</param>
 /// <returns>Color value.</returns>
 public override Color GetContentLongTextColor1(PaletteContentStyle style, PaletteState state)
 {
     // Do we need to override the text color
     if (OverrideTextColor(state) && (PaletteContent != null))
     {
         return(PaletteContent.GetContentShortTextColor1(state));
     }
     else
     {
         return(base.GetContentLongTextColor1(style, state));
     }
 }
All Usage Examples Of ComponentFactory.Krypton.Toolkit.PaletteContent::GetContentShortTextColor1