예제 #1
0
        private void ReInjectInclusive(int start, int end)
        {
            var range = new InclusiveRange(Document.Range(start, end)).Range;
            var xml   = range.WordOpenXML;

            range.InsertXML(xml);
        }
예제 #2
0
        private void injectButton_Click(object sender, RibbonControlEventArgs e)
        {
            var range = PromptRange();

            if (range != null)
            {
                range = new InclusiveRange(range).Range;
                var xml = range.WordOpenXML;
                range.InsertXML(xml);
            }
        }