GetEffective

PortionFormat.GetEffective method

Gets effective portion formatting data with the inheritance applied.

public IPortionFormatEffectiveData GetEffective()

Return Value

A IPortionFormatEffectiveData.

Examples

This example demonstrates getting some effective portion format properties.

[C#]
using (Presentation pres = new Presentation(@"MyPresentation.pptx"))
{
	IAutoShape shape = pres.Slides[0].Shapes[0] as IAutoShape;
	IPortionFormatEffectiveData effectivePortionFormat = shape.TextFrame.Paragraphs[0].Portions[0].PortionFormat.GetEffective();

	Console.WriteLine("Latin font: " + effectivePortionFormat.LatinFont.FontName);
	Console.WriteLine("Font height: " + effectivePortionFormat.FontHeight);
	Console.WriteLine("Fill type: " + effectivePortionFormat.FillFormat.FillType);
}

See Also