Esempio n. 1
0
 public Element(string text) :
     base(NodeType.Element)
 {
     this.CharacterFormatting = new CharacterFormatting();
     this.ParagraphFormatting = new ParagraphFormatting();
     this.AddText(text);
 }
Esempio n. 2
0
 public Element() :
     base(NodeType.Element)
 {
     this.CharacterFormatting = new CharacterFormatting();
     this.ParagraphFormatting = new ParagraphFormatting();
 }
Esempio n. 3
0
        public void ApplyFormulasTo(ParagraphFormatting target)
        {
            if (this.IndentFirst.HasValue)
            {
                target.IndentFirst = this.IndentFirst;
            }
            if (this.IndentLeft.HasValue)
            {
                target.IndentLeft = this.IndentLeft;
            }
            if (this.IndentRight.HasValue)
            {
                target.IndentRight = this.IndentRight;
            }

            if (this.SpacingAfter.HasValue)
            {
                target.SpacingAfter = this.SpacingAfter;
            }
            if (this.SpacingBefore.HasValue)
            {
                target.SpacingBefore = this.SpacingBefore;
            }
            if (this.SpacingBefore.HasValue)
            {
                target.SpacingBefore = this.SpacingBefore;
            }

            if (this.Bullet.HasValue)
            {
                target.Bullet = this.Bullet;
            }
            if (this.BulletFont.HasValue)
            {
                target.BulletFont = this.BulletFont;
            }
            if (this.BulletFontSize.HasValue)
            {
                target.BulletFontSize = this.BulletFontSize;
            }

            if (this.BulletString.HasValue)
            {
                target.BulletString = this.BulletString;
            }
            if (this.Flags.HasValue)
            {
                target.Flags = this.Flags;
            }
            if (this.HorizontalAlign.HasValue)
            {
                target.HorizontalAlign = this.HorizontalAlign;
            }
            if (this.LocBulletFont.HasValue)
            {
                target.LocBulletFont = this.LocBulletFont;
            }
            if (this.TextPosAfterBullet.HasValue)
            {
                target.TextPosAfterBullet = this.TextPosAfterBullet;
            }
        }