/// <summary> /// Gets the font for the ribbon text. /// </summary> /// <param name="state">Palette value should be applicable to this state.</param> /// <returns>Font value.</returns> public Font GetRibbonTextFont(PaletteState state) { if (TextFont != null) { return(TextFont); } else { return(_inherit.GetRibbonTextFont(state)); } }
/// <summary> /// Gets the font for the ribbon text. /// </summary> /// <param name="state">Palette value should be applicable to this state.</param> /// <returns>Font value.</returns> public override Font GetRibbonTextFont(PaletteState state) { IPaletteRibbonGeneral inherit = GetInherit(state); if (inherit != null) { return(inherit.GetRibbonTextFont(state)); } else { return(Target.GetRibbonTextFont(state)); } }
/// <summary> /// Gets the font for the ribbon text. /// </summary> /// <param name="state">Palette value should be applicable to this state.</param> /// <returns>Font value.</returns> public override Font GetRibbonTextFont(PaletteState state) { IPaletteRibbonGeneral inherit = GetInherit(state); return(inherit?.GetRibbonTextFont(state) ?? Target.GetRibbonTextFont(state)); }
/// <summary> /// Gets the font for the short text. /// </summary> /// <param name="state">Palette value should be applicable to this state.</param> /// <returns>Font value.</returns> public Font GetContentShortTextFont(PaletteState state) { return(_ribbonGeneral.GetRibbonTextFont(state)); }
/// <summary> /// Gets the font for the short text. /// </summary> /// <param name="state">Palette value should be applicable to this state.</param> /// <returns>Font value.</returns> public Font GetContentShortTextFont(PaletteState state) => _ribbonGeneral.GetRibbonTextFont(state);