Beispiel #1
0
 public DefaultEditorProperties()
 {
     if (DefaultFont == null)
     {
         DefaultFont = new Font("Courier New", 10);
     }
     this.fontContainer = new FontContainer(DefaultFont);
 }
Beispiel #2
0
 /// <value>
 /// The font used
 /// </value>
 public Font GetFont(FontContainer fontContainer)
 {
     if (Bold)
     {
         return(Italic ? fontContainer.BoldItalicFont : fontContainer.BoldFont);
     }
     if (Underline)
     {
         return(fontContainer.UnderlineFont);
     }
     if (Strikeout)
     {
         return(fontContainer.StrikeoutFont);
     }
     return(Italic ? fontContainer.ItalicFont : fontContainer.RegularFont);
 }
Beispiel #3
0
 public override Font GetFont(FontContainer fontContainer)
 {
     return(null);
 }
Beispiel #4
0
 public virtual Font GetFont(FontContainer fontContainer)
 {
     return(color.GetFont(fontContainer));
 }