• 教学
  • 下载
  • 作文
  • 知识
  • 课件
  • 教案
当前位置:问学网常识网电脑知识办公技巧ppt教程用C#实现在PowerPoint文档中搜索文本» 正文

用C#实现在PowerPoint文档中搜索文本

[10-18 20:51:35]   来源:http://www.wenxue9.com  ppt教程   阅读:8495

概要: foreach(string strKeyWord in strKeyWordList) { oText=null; oText=shape.TextFrame.TextRange.Find(strKeyWord,0,Microsoft.Office.Core.MsoTriState.msoFalse,Microsoft.Office.Core.MsoTriState.msoTrue); if (oText!=null) { MessageBox.Show("文档中包含指定的关键字 "+strKeyWord+" !","搜索结果",MessageBoxButtons.OK); continue; } } }}上一页 [1] [2]

用C#实现在PowerPoint文档中搜索文本,标签:PPT技巧,电脑基础教程,http://www.wenxue9.com
foreach(string strKeyWord in strKeyWordList)

{

oText=null;

oText=shape.TextFrame.TextRange.Find(strKeyWord,0,Microsoft.Office.Core.MsoTriState.msoFalse,Microsoft.Office.Core.MsoTriState.msoTrue);

if (oText!=null)

{

MessageBox.Show("文档中包含指定的关键字 "+strKeyWord+" !","搜索结果",MessageBoxButtons.OK);

continue;

}

}

}

}

上一页  [1] [2] 


Tag:ppt教程PPT技巧,电脑基础教程电脑知识 - 办公技巧 - ppt教程


上一篇:PowerPoint 2007演示文稿瘦身有妙法
《用C#实现在PowerPoint文档中搜索文本》相关文章
[已有条评论] 我来点评
验证码: 昵称: