예제 #1
0
        public OpenXmlCompositeElement NewRun(OpenXmlCompositeElement?runProps, string?text, SpaceProcessingModeValues spaceMode, bool initialBr)
        {
            var textNode = new W.Text(text)
            {
                Space = spaceMode
            };

            var result = new W.Run(runProps, textNode);

            if (initialBr)
            {
                result.InsertBefore(new W.Break(), textNode);
            }

            return(result);
        }