GetEffective
BulletFormat.GetEffective 方法
获取应用继承的有效项目符号格式数据。
public IBulletFormatEffectiveData GetEffective()
返回值
一个 IBulletFormatEffectiveData
。
示例
此示例演示如何获取一些有效的项目符号格式属性。
[C#]
using (Presentation pres = new Presentation(@"MyPresentation.pptx"))
{
IAutoShape shape = pres.Slides[0].Shapes[0] as IAutoShape;
IBulletFormatEffectiveData effectiveBulletFormat = shape.TextFrame.Paragraphs[0].ParagraphFormat.Bullet.GetEffective();
Console.WriteLine("项目符号类型: " + effectiveBulletFormat.Type);
if (effectiveBulletFormat.Type == BulletType.Numbered)
{
Console.WriteLine("编号样式: " + effectiveBulletFormat.NumberedBulletStyle);
Console.WriteLine("起始编号: " + effectiveBulletFormat.NumberedBulletStartWith);
}
}