public PopulateFromBase ( PaletteState state ) : void | ||
state | PaletteState | Palette state to use when populating. |
return | void |
public void PopulateFromBase(PaletteState state)
{
// Get the values and set into storage
Draw = GetBorderDraw(state);
DrawBorders = GetBorderDrawBorders(state);
GraphicsHint = GetBorderGraphicsHint(state);
Color1 = GetBorderColor1(state);
Color2 = GetBorderColor2(state);
ColorStyle = GetBorderColorStyle(state);
ColorAlign = GetBorderColorAlign(state);
ColorAngle = GetBorderColorAngle(state);
Width = GetBorderWidth(state);
Rounding = GetBorderRounding(state);
Image = GetBorderImage(state);
ImageStyle = GetBorderImageStyle(state);
ImageAlign = GetBorderImageAlign(state);
}
/// <summary> /// Populate values from the base palette. /// </summary> /// <param name="state">The palette state to populate with.</param> public virtual void PopulateFromBase(PaletteState state) { _back.PopulateFromBase(state); _border.PopulateFromBase(state); }