public PopulateFromBase ( PaletteState state ) : void | ||
state | PaletteState | Palette state to use when populating. |
return | void |
public void PopulateFromBase(PaletteState state)
{
BackColor1 = GetRibbonBackColor1(state);
BackColor2 = GetRibbonBackColor2(state);
BackColor3 = GetRibbonBackColor3(state);
BackColor4 = GetRibbonBackColor4(state);
BackColor5 = GetRibbonBackColor5(state);
TextColor = GetRibbonTextColor(state);
}
/// <summary> /// Populate values from the base palette. /// </summary> public void PopulateFromBase() { // Populate only the designated styles _stateNormal.PopulateFromBase(PaletteState.Normal); _stateTracking.PopulateFromBase(PaletteState.Tracking); _stateContextNormal.PopulateFromBase(PaletteState.ContextNormal); _stateContextTracking.PopulateFromBase(PaletteState.ContextTracking); }