Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在创建一个 PowerPoint 加载项。我创建了功能区按钮,单击这些按钮会打开 Windows 窗体。但是,我如何才能从表单与活动演示文稿进行交流?例如,当单击(表单中的)按钮时,如何将活动演示文稿的高度和宽度获取到表单中的两个文本框?
知道了,
一个例子是:
Text1.Text = Globals.ThisAddIn.Application.ActivePresentation.PageSetup.SlideWidth / 72