示例#1
0
        /// <summary>
        /// The word doc has a different font color for the answers to questions
        /// </summary>
        /// <param name="doc"></param>
        /// <returns></returns>
        private static string CreateIntakeFormAnswersCharStyle(WordprocessingDocument doc)
        {
            var answerFormatStyleId = "AnswerStyleChar";
            var grayText            = new Color()
            {
                Val = "888888"
            };

            Formatting.CreateAndAddCharacterStyle(doc,
                                                  answerFormatStyleId,
                                                  "Answer Style Char",
                                                  "Answer Gray", "AnswerStylePar", new List <OpenXmlElement> {
                grayText
            });
            return(answerFormatStyleId);
        }