public void CreateTextParagraph(WordprocessingDocument package, TextParagraphType paragraphType, HorizontalAlignmentType alignment, string text, FormatStyle formatStyle) { switch (paragraphType) { case TextParagraphType.Title: CreateTextParagraph(package, StyleCreator.TitleStyle, alignment, text, formatStyle); break; case TextParagraphType.Normal: CreateTextParagraph(package, StyleCreator.NormalStyle, alignment, text, formatStyle); break; case TextParagraphType.Heading1: CreateTextParagraph(package, StyleCreator.HeadingOneStyle, alignment, text, formatStyle); break; case TextParagraphType.Heading2: CreateTextParagraph(package, StyleCreator.HeadingTwoStyle, alignment, text, formatStyle); break; case TextParagraphType.Heading3: CreateTextParagraph(package, StyleCreator.HeadingThreeStyle, alignment, text, formatStyle); break; case TextParagraphType.None: default: CreateTextParagraph(package, string.Empty, alignment, text, formatStyle); break; } }
public void CreateTextParagraph(TextParagraphType paragraphType, HorizontalAlignmentType alignment, string text, FormatStyle formatStyle) { var titleCreator = new ParagraphCreator(); titleCreator.CreateTextParagraph(this._package, paragraphType, alignment, text, formatStyle); }
public void CreateTextParagraph(WordprocessingDocument package, TextParagraphType paragraphType, HorizontalAlignmentType alignment, string text) { CreateTextParagraph(package, paragraphType, alignment, text, null); }
public void CreateTextParagraph(TextParagraphType paragraphType, string text) { var titleCreator = new ParagraphCreator(); titleCreator.CreateTextParagraph(this._package, paragraphType, HorizontalAlignmentType.Left, text); }