Ejemplo n.º 1
0
 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;
     }
 }
Ejemplo n.º 2
0
 public void CreateTextParagraph(TextParagraphType paragraphType, HorizontalAlignmentType alignment, string text, FormatStyle formatStyle)
 {
     var titleCreator = new ParagraphCreator();
     titleCreator.CreateTextParagraph(this._package, paragraphType, alignment, text, formatStyle);
 }
Ejemplo n.º 3
0
 public void CreateTextParagraph(WordprocessingDocument package, TextParagraphType paragraphType, HorizontalAlignmentType alignment, string text)
 {
     CreateTextParagraph(package, paragraphType, alignment, text, null);
 }
Ejemplo n.º 4
0
 public void CreateTextParagraph(TextParagraphType paragraphType, string text)
 {
     var titleCreator = new ParagraphCreator();
     titleCreator.CreateTextParagraph(this._package, paragraphType, HorizontalAlignmentType.Left, text);
 }