/// <summary>
 /// Gets the first back color for the long text.
 /// </summary>
 /// <param name="state">Palette value should be applicable to this state.</param>
 /// <returns>Color value.</returns>
 public override Color GetContentLongTextColor1(PaletteState state)
 {
     if (_overrideTextColor != Color.Empty)
     {
         return(_overrideTextColor);
     }
     else
     {
         return(RibbonGeneral.GetRibbonContextTextColor(state));
     }
 }
 /// <summary>
 /// Gets the rendering hint for the long text.
 /// </summary>
 /// <param name="state">Palette value should be applicable to this state.</param>
 /// <returns>PaletteTextHint value.</returns>
 public override PaletteTextHint GetContentLongTextHint(PaletteState state)
 {
     if (_overrideTextHint != PaletteTextHint.Inherit)
     {
         return(_overrideTextHint);
     }
     else
     {
         return(RibbonGeneral.GetRibbonTextHint(state));
     }
 }
Beispiel #3
0
 /// <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 override PaletteTextHint GetContentShortTextHint(PaletteState state) =>
 OverrideTextHint != PaletteTextHint.Inherit ? OverrideTextHint : RibbonGeneral.GetRibbonTextHint(state);
Beispiel #4
0
 /// <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 override Font GetContentShortTextFont(PaletteState state)
 {
     return(RibbonGeneral.GetRibbonContextTextFont(state));
 }
Beispiel #5
0
 /// <summary>
 /// Gets the horizontal relative alignment of the short text.
 /// </summary>
 /// <param name="state">Palette value should be applicable to this state.</param>
 /// <returns>RelativeAlignment value.</returns>
 public override PaletteRelativeAlign GetContentShortTextH(PaletteState state)
 {
     return(RibbonGeneral.GetRibbonContextTextAlign(state));
 }
Beispiel #6
0
 /// <summary>
 /// Gets the second back color for the long text.
 /// </summary>
 /// <param name="state">Palette value should be applicable to this state.</param>
 /// <returns>Color value.</returns>
 public override Color GetContentLongTextColor2(PaletteState state) => OverrideTextColor != Color.Empty
     ? OverrideTextColor
     : RibbonGeneral.GetRibbonContextTextColor(state);
Beispiel #7
0
 /// <summary>
 /// Gets the font for the long text.
 /// </summary>
 /// <param name="state">Palette value should be applicable to this state.</param>
 /// <returns>Font value.</returns>
 public override Font GetContentLongTextFont(PaletteState state)
 {
     return RibbonGeneral.GetRibbonContextTextFont(state);
 }