ComponentFactory.Krypton.Toolkit.PaletteRibbonBackInheritRedirect.GetRibbonBackColor3 C# (CSharp) Method

GetRibbonBackColor3() public method

Gets the third background color for the ribbon item.
public GetRibbonBackColor3 ( PaletteState state ) : Color
state PaletteState Palette value should be applicable to this state.
return Color
        public override Color GetRibbonBackColor3(PaletteState state)
        {
            return _redirect.GetRibbonBackColor3(_styleBack, state);
        }

Usage Example

Example #1
0
 /// <summary>
 /// Gets the third background color for the ribbon item.
 /// </summary>
 /// <param name="state">Palette value should be applicable to this state.</param>
 /// <returns>Color value.</returns>
 public Color GetRibbonBackColor3(PaletteState state)
 {
     if (BackColor3 != Color.Empty)
     {
         return(BackColor3);
     }
     else
     {
         return(_inheritBack.GetRibbonBackColor3(state));
     }
 }