ParentShape

TextFrame.ParentShape property

Returns the parent shape or null if the parent object does not implement the IShape interface Read-only IShape.

public IShape ParentShape { get; }

Examples

The following code sample shows

[C#]
using (Presentation presentation = new Presentation("SomePresentation.pptx"))
{
    AutoShape autoShape = (AutoShape)presentation.Slides[0].Shapes[0];
    
    Assert.IsTrue(autoShape.TextFrame.ParentShape == autoShape);
    // ...
}

See Also