public SMRichText(SMControl parent) { Font = parent.Font; Paragraph = parent.Paragraph; Columns = -1; ColumnSeparatorWidth = 20; }
public SMWordText(SMFont f, SMTokenItem item) : base(f) { text = item.Text ?? text; tag = item.Tag; TextBrush = null; }
public void Set(SMFont f) { this.Bold = f.Bold; this.Italic = f.Italic; this.Underline = f.Underline; this.Name = f.Name; this.Size = f.Size; }
/* * [Browsable(true), Category("Appearance")] * public bool SizeToFit { get; set; } * * [Browsable(true), Category("Appearance")] * public float LineSpacing { get; set; }*/ public MNReferencedStyle() { Name = ""; Font = new SMFont(); ContentPadding = new SMContentPadding(); Paragraph = new SMParaFormat(); HighlightState = new SMStatusLayout(); NormalState = new SMStatusLayout(); }
public static SMFont GetVirtFontVariation(string fontName, float fontSize, bool Bold, bool Italic, bool Underline, bool Strikeout) { string code = GetVirtFontCode(fontName, fontSize, Bold, Italic, Underline, Strikeout); if (!p_virtual_fonts.ContainsKey(code)) { SMFont sm = new SMFont(); sm.Underline = Underline; sm.Size = fontSize; sm.Name = fontName; sm.Italic = Italic; sm.Bold = Bold; p_virtual_fonts[code] = sm; } return(p_virtual_fonts[code]); }
public SMWordText(SMFont f) : base(f) { }
public SMWordSpecial(SMFont f) : base(f) { }
public SMWordBase(SMFont f) { Font = f; }
public SMWordImage(SMFont f, SMTokenItem item) : base(f) { tag = item.Tag; image = item.Image; }
public SMWordImage(SMFont f) : base(f) { }
public SMWordToken(SMFont f) : base(f) { }