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