/// <summary>
 /// Gets the rendering hint for the ribbon font.
 /// </summary>
 /// <param name="state">Palette value should be applicable to this state.</param>
 /// <returns>PaletteTextHint value.</returns>
 public PaletteTextHint GetRibbonTextHint(PaletteState state)
 {
     if (TextHint != PaletteTextHint.Inherit)
     {
         return(TextHint);
     }
     else
     {
         return(_inherit.GetRibbonTextHint(state));
     }
 }
        /// <summary>
        /// Gets the rendering hint for the ribbon font.
        /// </summary>
        /// <param name="state">Palette value should be applicable to this state.</param>
        /// <returns>PaletteTextHint value.</returns>
        public override PaletteTextHint GetRibbonTextHint(PaletteState state)
        {
            IPaletteRibbonGeneral inherit = GetInherit(state);

            if (inherit != null)
            {
                return(inherit.GetRibbonTextHint(state));
            }
            else
            {
                return(Target.GetRibbonTextHint(state));
            }
        }
Esempio n. 3
0
        /// <summary>
        /// Gets the rendering hint for the ribbon font.
        /// </summary>
        /// <param name="state">Palette value should be applicable to this state.</param>
        /// <returns>PaletteTextHint value.</returns>
        public override PaletteTextHint GetRibbonTextHint(PaletteState state)
        {
            IPaletteRibbonGeneral inherit = GetInherit(state);

            return(inherit?.GetRibbonTextHint(state) ?? Target.GetRibbonTextHint(state));
        }
 /// <summary>
 /// Gets the rendering hint for the short text.
 /// </summary>
 /// <param name="state">Palette value should be applicable to this state.</param>
 /// <returns>PaletteTextHint value.</returns>
 public PaletteTextHint GetContentShortTextHint(PaletteState state)
 {
     return(_ribbonGeneral.GetRibbonTextHint(state));
 }
 /// <summary>
 /// Gets the rendering hint for the short text.
 /// </summary>
 /// <param name="state">Palette value should be applicable to this state.</param>
 /// <returns>PaletteTextHint value.</returns>
 public PaletteTextHint GetContentShortTextHint(PaletteState state) => _ribbonGeneral.GetRibbonTextHint(state);