GetEffective

TextFrameFormat.GetEffective method

Obtiene datos de formato de marco de texto efectivo con la herencia aplicada.

public ITextFrameFormatEffectiveData GetEffective()

Valor_devuelto

AITextFrameFormatEffectiveData.

Ejemplos

Este ejemplo demuestra cómo obtener algunas propiedades efectivas de formato de marco de texto.

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

Ver también