Exemplo n.º 1
0
 public SMRichText(SMControl parent)
 {
     Font                 = parent.Font;
     Paragraph            = parent.Paragraph;
     Columns              = -1;
     ColumnSeparatorWidth = 20;
 }
Exemplo n.º 2
0
 public SMWordText(SMFont f, SMTokenItem item)
     : base(f)
 {
     text      = item.Text ?? text;
     tag       = item.Tag;
     TextBrush = null;
 }
Exemplo n.º 3
0
 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;
 }
Exemplo n.º 4
0
        /*
         * [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();
        }
Exemplo n.º 5
0
        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]);
        }
Exemplo n.º 6
0
 public SMWordText(SMFont f)
     : base(f)
 {
 }
Exemplo n.º 7
0
 public SMWordSpecial(SMFont f)
     : base(f)
 {
 }
Exemplo n.º 8
0
 public SMWordBase(SMFont f)
 {
     Font = f;
 }
Exemplo n.º 9
0
 public SMWordImage(SMFont f, SMTokenItem item)
     : base(f)
 {
     tag   = item.Tag;
     image = item.Image;
 }
Exemplo n.º 10
0
 public SMWordImage(SMFont f)
     : base(f)
 {
 }
Exemplo n.º 11
0
 public SMWordToken(SMFont f)
     : base(f)
 {
 }