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