Exemple #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();
     }
 }
Exemple #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;
 }
Exemple #3
0
 /// <summary>
 /// Write Text In Word Document
 /// </summary>
 public void WriteTextWithShading(string text, WdColor bgColor)
 {
     CurrentSelection.TypeText(text);
     CurrentSelection.Shading.BackgroundPatternColor = bgColor;
 }
Exemple #4
0
 /// <summary>
 /// Write Text In Word Document
 /// </summary>
 public void WriteText(string text)
 {
     CurrentSelection.TypeText(text);
 }