GetEffective

TextFrameFormat.GetEffective method

Gets effective text frame formatting data with the inheritance applied.

public ITextFrameFormatEffectiveData GetEffective()

Return Value

A ITextFrameFormatEffectiveData.

Examples

This example demonstrates getting some of effective text frame formatting properties.

[C#]
using (Presentation pres = new Presentation(@"MyPresentation.pptx"))
{
    IAutoShape shape = pres.Slides[0].Shapes[0] as IAutoShape;
    ITextFrameFormatEffectiveData effectiveTextFrameFormat = shape.TextFrame.TextFrameFormat.GetEffective();
   
    Console.WriteLine("Anchoring type: " + effectiveTextFrameFormat.AnchoringType);
    Console.WriteLine("Autofit type: " + effectiveTextFrameFormat.AutofitType);
    Console.WriteLine("Text vertical type: " + effectiveTextFrameFormat.TextVerticalType);
    Console.WriteLine("Margins");
    Console.WriteLine("   Left: " + effectiveTextFrameFormat.MarginLeft);
    Console.WriteLine("   Top: " + effectiveTextFrameFormat.MarginTop);
    Console.WriteLine("   Right: " + effectiveTextFrameFormat.MarginRight);
    Console.WriteLine("   Bottom: " + effectiveTextFrameFormat.MarginBottom);
}

See Also