在某个函数,或者按钮点击事件中调用即可。
PowerPoint.Selection select = Globals.ThisAddIn.Application.ActiveWindow.Selection; string tempStr = select.TextRange.Text;