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