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