public Element(string text) : base(NodeType.Element) { this.CharacterFormatting = new CharacterFormatting(); this.ParagraphFormatting = new ParagraphFormatting(); this.AddText(text); }
public Element() : base(NodeType.Element) { this.CharacterFormatting = new CharacterFormatting(); this.ParagraphFormatting = new ParagraphFormatting(); }
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; } }