GetEffective

TextFrameFormat.GetEffective method

Получает эффективные данные форматирования текстового фрейма с применением наследования.

public ITextFrameFormatEffectiveData GetEffective()

Возвращаемое значение

AITextFrameFormatEffectiveData.

Примеры

Этот пример демонстрирует получение некоторых эффективных свойств форматирования текстового фрейма.

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

Смотрите также