ParentCell

TextFrame.ParentCell 属性

返回父单元格,如果父对象没有实现 ICell 接口,则返回 null。仅限读取 ICell

public ICell ParentCell { get; }

示例

以下代码示例显示

[C#]
using (Presentation presentation = new Presentation("SomePresentation.pptx"))
{
    Table table = (Table)presentation.Slides[0].Shapes[0];
    
    Assert.IsTrue(table[0,0].TextFrame.ParentCell == table[0,0]);
    // ...
}

另请参阅