PortionFormatGetEffective Method

Gets effective portion formatting data with the inheritance applied.

Namespace:  Aspose.Slides
Assembly:  Aspose.Slides (in Aspose.Slides.dll) Version: 21.11.0.0 (21.11)
Syntax
public IPortionFormatEffectiveData GetEffective()

Return Value

Type: IPortionFormatEffectiveData
A IPortionFormatEffectiveData.

Implements

IPortionFormatGetEffective
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