GetEffective

ParagraphFormat.GetEffective method

Gets effective paragraph formatting data with the inheritance applied.

public IParagraphFormatEffectiveData GetEffective()

Return Value

A IParagraphFormatEffectiveData.

Examples

This example demonstrates getting some effective paragraph format properties.

[C#]
using (Presentation pres = new Presentation(@"MyPresentation.pptx"))
{
	IAutoShape shape = pres.Slides[0].Shapes[0] as IAutoShape;
	IParagraphFormatEffectiveData effectiveParagraphFormat = shape.TextFrame.Paragraphs[0].ParagraphFormat.GetEffective();

	Console.WriteLine("Text alignment: " + effectiveParagraphFormat.Alignment);
	Console.WriteLine("Indent: " + effectiveParagraphFormat.Indent);
	Console.WriteLine("Bullet type: " + effectiveParagraphFormat.Bullet.Type);
}

See Also