GetEffective
BulletFormat.GetEffective method
获取应用了继承的有效项目符号格式数据。
public IBulletFormatEffectiveData GetEffective()
返回值
例子
此示例演示了如何获取一些有效的项目符号格式属性。
[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("Bullet type: " + effectiveBulletFormat.Type);
if (effectiveBulletFormat.Type == BulletType.Numbered)
{
Console.WriteLine("Numbered style: " + effectiveBulletFormat.NumberedBulletStyle);
Console.WriteLine("Starting number: " + effectiveBulletFormat.NumberedBulletStartWith);
}
}
也可以看看
- interface IBulletFormatEffectiveData
- class BulletFormat
- 命名空间 Aspose.Slides
- 部件 Aspose.Slides