C# 如何在C语言的powerpoint中显示smartart图形的文本窗格#

C# 如何在C语言的powerpoint中显示smartart图形的文本窗格#,c#,vsto,powerpoint,C#,Vsto,Powerpoint,如何在PowerPoint(VSTO加载项)中显示SmartArt图形的文本窗格 我找不到文本窗格的任何代码,只有我可以显示/隐藏它 使用core=Microsoft.Office.core; 使用pp=Microsoft.Office.Interop.PowerPoint; 公共静态void CreateOrgChart() { pp.应用程序; pp.介绍压力; core.smartsa; core.smartlayout布局; app=Globals.ThisAddIn.Applicati

如何在PowerPoint(VSTO加载项)中显示SmartArt图形的文本窗格

我找不到文本窗格的任何代码,只有我可以显示/隐藏它

使用core=Microsoft.Office.core;
使用pp=Microsoft.Office.Interop.PowerPoint;
公共静态void CreateOrgChart()
{
pp.应用程序;
pp.介绍压力;
core.smartsa;
core.smartlayout布局;
app=Globals.ThisAddIn.Application;
pres=app.ActivePresentation;
layout=app.smartlayouts[97];//97-表示组织结构图
sa=pres.Slides[1]。Shapes.AddSmartArt(布局)。SmartArt;
//sa.textpane.show();//不存在
}

还要澄清,, 我的目标不是从形状中获取文本

问题是, 最初,当用户第一次单击该箭头以显示文本窗格时,文本窗格有点混乱,只有当我再次隐藏并重新显示时,这才得以解决。

我需要在PowerPoint中显示或隐藏SmartArt的文本窗格(按代码)