.Net PowerPoint automation - edit/delete text with Hyperlink from SmartArt

136 views Asked by At

How can I access Hyperlink that is located in shape inside SmartArt object of PowerPoint slide?

This is code with which I can read hyperlink text:

      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

But how to access link, and change it, remove, etc?

0

There are 0 answers