GetEffective

TextFrameFormat.GetEffective Methode

Ruft die effektiven Formatierungsdaten des Textfeldes mit der angewendeten Vererbung ab.

public ITextFrameFormatEffectiveData GetEffective()

Rückgabewert

Ein ITextFrameFormatEffectiveData.

Beispiele

Dieses Beispiel zeigt, wie einige der effektiven Eigenschaften der Textfeldformatierung abgerufen werden.

[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("Ankertyp: " + effectiveTextFrameFormat.AnchoringType);
    Console.WriteLine("Autofit-Typ: " + effectiveTextFrameFormat.AutofitType);
    Console.WriteLine("Vertikaler Texttyp: " + effectiveTextFrameFormat.TextVerticalType);
    Console.WriteLine("Ränder");
    Console.WriteLine("   Links: " + effectiveTextFrameFormat.MarginLeft);
    Console.WriteLine("   Oben: " + effectiveTextFrameFormat.MarginTop);
    Console.WriteLine("   Rechts: " + effectiveTextFrameFormat.MarginRight);
    Console.WriteLine("   Unten: " + effectiveTextFrameFormat.MarginBottom);
}

Siehe Auch