![](/img/trans.png)
[英]How to retrieve links between PowerPoint slides within a presentation
[英]How to add radio buttons to the slides in powerpoint presentation
我在.NET中創建了一個Powerpoint加載項,並且我知道如何向幻燈片中添加新的文本框。 但是我不知道如何添加單選按鈕,復選按鈕和輸入文本字段。 可能嗎?
private void questions()
{
PowerPoint.Shape textBox = activeSlide.Shapes.AddTextbox(Office.MsoTextOrientation.msoTextOrientationHorizontal, 50, 50, 500, 500);
textBox.TextFrame.TextRange.InsertAfter("Text");
}
這是您在VBA中的操作方式。 我將把VBA 2 C#的翻譯工作留給您。
Dim oSl As Slide
Dim oSh As Shape
Set oSl = ActivePresentation.Slides(1)
Set oSh = oSl.Shapes.AddOLEObject(100, 100, 200, 30, "Forms.OptionButton.1")
詳細信息: http : //msdn.microsoft.com/zh-cn/library/office/bb230698(v=office.12).aspx
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.