ParentShape
TextFrame.ParentShape 属性
如果父对象不实现IShape接口,则返回父形状或null 只读 IShape
。
public IShape ParentShape { get; }
示例
以下代码示例显示了
[C#]
using (Presentation presentation = new Presentation("SomePresentation.pptx"))
{
AutoShape autoShape = (AutoShape)presentation.Slides[0].Shapes[0];
Assert.IsTrue(autoShape.TextFrame.ParentShape == autoShape);
// ...
}
另请参阅
- 接口 IShape
- 类 TextFrame
- 命名空间 Aspose.Slides
- 程序集 Aspose.Slides