예제 #1
0
 public DefaultEditorProperties()
 {
     if (DefaultFont == null)
     {
         DefaultFont = new Font("Courier New", 10);
     }
     this.fontContainer = new FontContainer(DefaultFont);
 }
예제 #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);
 }
예제 #3
0
 public override Font GetFont(FontContainer fontContainer)
 {
     return(null);
 }
예제 #4
0
 public virtual Font GetFont(FontContainer fontContainer)
 {
     return(color.GetFont(fontContainer));
 }