Example #1
0
        internal Run NewRun()
        {
            var result = new Run();

            if (paragraph.Has <ParagraphProperties>())
            {
                var paragraphProperties = paragraph.GetOrCreate <ParagraphProperties>();

                if (paragraphProperties.Has <ParagraphMarkRunProperties>())
                {
                    var paragraphMarkRunProperties = paragraphProperties.GetOrCreate <ParagraphMarkRunProperties>();

                    result.PrependChild(paragraphMarkRunProperties.CloneNode(true));
                }
            }

            return(result);
        }