.Net PowerPoint自动化 - 使用SmartArt

时间:2015-06-24 12:03:40

标签: .net hyperlink powerpoint office-automation

如何访问PowerPoint幻灯片SmartArt对象中位于形状的超链接?

这是我可以阅读超链接文本的代码:

      For Each s As PowerPoint.Slide In oPres.Slides
         For Each sh As PowerPoint.Shape In s.Shapes
            Select Case sh.Type
                Case MsoShapeType.msoSmartArt
                    For Each san As SmartArtNode In sh.SmartArt.Nodes
                        If san.TextFrame2.HasText Then
                            Debug.WriteLine(san.TextFrame2.TextRange.Text)
                        End If
                    Next
            End Select
        Next
     Next

但是如何访问链接,更改链接,删除等等?

0 个答案:

没有答案