IsDecorative

IShape.IsDecorative 属性

获取或设置“标记为装饰性”选项的读取/写入布尔值。

public bool IsDecorative { get; set; }

示例

using (Presentation pres = new Presentation("sample.pptx"))
{
    pres.Slides[0].Shapes[0].IsDecorative = true;
}

另请参见