public FontDescription(FontDescription prototype, float size) : this(prototype.Name, size, prototype.Style, prototype.Unit) { }
public FontDescription(FontDescription prototype, FontStyle style) : this(prototype.Name, prototype.Size, style, prototype.Unit) { }
public FontDescription(FontDescription prototype, string name) : this(name, prototype.Size, prototype.Style, prototype.Unit) { }
public static FontDescription GetStrikeoutToggled(FontDescription prototype) { return(new FontDescription(prototype, prototype.IsStrikeout ? prototype.Style & ~FontStyle.Strikeout : prototype.Style | FontStyle.Strikeout)); }
public static FontDescription GetUnderlineToggled(FontDescription prototype) { return(new FontDescription(prototype, prototype.IsUnderline ? prototype.Style & ~FontStyle.Underline : prototype.Style | FontStyle.Underline)); }
public static FontDescription GetItalicToggled(FontDescription prototype) { return(new FontDescription(prototype, prototype.IsItalic ? prototype.Style & ~FontStyle.Italic : prototype.Style | FontStyle.Italic)); }
// ======================================== // static field // ======================================== public static FontDescription GetBoldToggled(FontDescription prototype) { return(new FontDescription(prototype, prototype.IsBold ? prototype.Style & ~FontStyle.Bold : prototype.Style | FontStyle.Bold)); }