GetEffective

Método TextFrameFormat.GetEffective

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

public ITextFrameFormatEffectiveData GetEffective()

Valor de Retorno

Un ITextFrameFormatEffectiveData.

Ejemplos

Este ejemplo demuestra cómo obtener algunas de las propiedades de formato efectivo del 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("Tipo de anclaje: " + effectiveTextFrameFormat.AnchoringType);
    Console.WriteLine("Tipo de ajuste automático: " + effectiveTextFrameFormat.AutofitType);
    Console.WriteLine("Tipo de texto vertical: " + effectiveTextFrameFormat.TextVerticalType);
    Console.WriteLine("Márgenes");
    Console.WriteLine("   Izquierda: " + effectiveTextFrameFormat.MarginLeft);
    Console.WriteLine("   Arriba: " + effectiveTextFrameFormat.MarginTop);
    Console.WriteLine("   Derecha: " + effectiveTextFrameFormat.MarginRight);
    Console.WriteLine("   Abajo: " + effectiveTextFrameFormat.MarginBottom);
}

También Vea