get_ParentShape()

TextFrame::get_ParentShape() method

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

System::SharedPtr<IShape> Aspose::Slides::TextFrame::get_ParentShape() override

Remarks

The following code sample shows

System::SharedPtr<Presentation> presentation = System::MakeObject<Presentation>(u"SomePresentation.pptx");
System::SharedPtr<AutoShape> autoShape = System::ExplicitCast<AutoShape>(presentation->get_Slide(0)->get_Shape(0));

ASSERT_TRUE(autoShape->get_TextFrame()->get_ParentShape() == autoShape);

See Also