for(int i = 0; i < pres.Slides.Count; i++)
{
Slide slide = pres.Slides;
for(int j = 0; j < slide.Shapes.Count; j++)
{
Shape shape = slide.Shapes[j];
if (shape is TextFrame)
{TextFrame tf = (TextFrame)shape;
if (tf != null)
{
if (tf.Links.Count > 0)
{
foreach(Link link in tf.Links)
if ((link.ExternalHyperlink != null) | (link.InternalHyperlink != -1))
// InternalHyperlink isn’t working
}}
}
}
}
TextFrame that has only InternalHyperlink always return 0 in tf.Links.Count.