Exemplo n.º 1
0
 /// <summary>
 /// Write Text In Word Document
 /// </summary>
 public void WriteText(string text, bool writeEnterBeforeText, bool writeEnterAfterText)
 {
     if (writeEnterBeforeText)
     {
         CurrentSelection.TypeParagraph();
     }
     CurrentSelection.TypeText(text);
     if (writeEnterAfterText)
     {
         CurrentSelection.TypeParagraph();
     }
 }
Exemplo n.º 2
0
 /// <summary>
 /// Write Text In Word Document. Used for Proposal
 /// </summary>
 public void WriteTextWithShadingProposal(string text, WdColor bgColor)
 {
     CurrentSelection.TypeText(text);
     CurrentSelection.Shading.BackgroundPatternColor = bgColor;
     CurrentSelection.ParagraphFormat.RightIndent    = -8;
 }
Exemplo n.º 3
0
 /// <summary>
 /// Write Text In Word Document
 /// </summary>
 public void WriteTextWithShading(string text, WdColor bgColor)
 {
     CurrentSelection.TypeText(text);
     CurrentSelection.Shading.BackgroundPatternColor = bgColor;
 }
Exemplo n.º 4
0
 /// <summary>
 /// Write Text In Word Document
 /// </summary>
 public void WriteText(string text)
 {
     CurrentSelection.TypeText(text);
 }