ComponentFactory.Krypton.Toolkit.PaletteRibbonBackInheritRedirect.GetRibbonBackColorStyle C# (CSharp) Метод

GetRibbonBackColorStyle() публичный Метод

Gets the method used to draw the background of a ribbon item.
public GetRibbonBackColorStyle ( PaletteState state ) : PaletteRibbonColorStyle
state PaletteState Palette value should be applicable to this state.
Результат PaletteRibbonColorStyle
        public override PaletteRibbonColorStyle GetRibbonBackColorStyle(PaletteState state)
        {
            return _redirect.GetRibbonBackColorStyle(_styleBack, state);
        }

Usage Example

 /// <summary>
 /// Gets the background drawing style for the ribbon item.
 /// </summary>
 /// <param name="state">Palette value should be applicable to this state.</param>
 /// <returns>Color value.</returns>
 public PaletteRibbonColorStyle GetRibbonBackColorStyle(PaletteState state)
 {
     return(_inheritBack.GetRibbonBackColorStyle(state));
 }