|
先完成两个先
1,
- private void button2_Click(object sender, RibbonControlEventArgs e)
- {
- //插入字符串
- int iIngEnd = GetWordApp().ActiveDocument.Paragraphs[3].Range.End;
- int iIngStart = GetWordApp().ActiveDocument.Paragraphs[3].Range.Start;
- GetWordApp().ActiveDocument.Range(iIngStart, iIngEnd).InsertAfter("西西师傅!我来了");
-
- }
复制代码
2,- private void button3_Click(object sender, RibbonControlEventArgs e)
- {
- //删除嵌入图片
- foreach (var item in GetWordApp().ActiveDocument.InlineShapes)
- {
- InlineShape aa = item as InlineShape;
- aa.Delete();
- }
- }
复制代码
|
|