/// <summary> /// Gets the color of the ribbon caption text. /// </summary> /// <param name="state">Palette value should be applicable to this state.</param> /// <returns>Color value.</returns> public Color GetRibbonContextTextColor(PaletteState state) { if (DisabledDark != Color.Empty) { return(ContextTextColor); } else { return(_inherit.GetRibbonContextTextColor(state)); } }