public void AddKey(string key, IFontColor color) { if (colors.ContainsKey(key)) { throw new InvalidOperationException($"The key '{key}' has already been registered to this FontColorProvider"); } colors.Add(key, color); }
public override void SetDefault(IFontColor color) { defaultValue = color; }
public void AddEntry(string text, IFontWeight fontWeight, IFontColor fontColor) { AddEntry(text, fontWeight, fontColor, DefaultFontSize); }
public abstract void SetDefault(IFontColor color);