Beispiel #1
0
        public static void TransformPartToSingleCharacterRuns(OpenXmlPart part)
        {
            // After transforming to single character runs, Rsid info will be invalid, so
            // remove from the part.
            XElement root    = part.GetXElement();
            var      newRoot = (XElement)RemoveRsidTransform(root);

            newRoot = (XElement)SingleCharacterRunTransform(newRoot);
            root.ReplaceWith(newRoot);
            part.PutXElement();
        }