private void ReInjectInclusive(int start, int end) { var range = new InclusiveRange(Document.Range(start, end)).Range; var xml = range.WordOpenXML; range.InsertXML(xml); }
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); } }