GetEffective

BulletFormat.GetEffective method

Gets effective bullet formatting data with the inheritance applied.

public IBulletFormatEffectiveData GetEffective()

Return Value

A IBulletFormatEffectiveData.

Examples

This example demonstrates getting some effective bullet format properties.

[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);
	}
}

See Also