GetEffective

TextFrameFormat.GetEffective метод

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

public ITextFrameFormatEffectiveData GetEffective()

Значение Возврата

ITextFrameFormatEffectiveData.

Примеры

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

[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("Тип закрепления: " + effectiveTextFrameFormat.AnchoringType);
    Console.WriteLine("Тип автоподгона: " + effectiveTextFrameFormat.AutofitType);
    Console.WriteLine("Вертикальный тип текста: " + effectiveTextFrameFormat.TextVerticalType);
    Console.WriteLine("Поля");
    Console.WriteLine("   Слева: " + effectiveTextFrameFormat.MarginLeft);
    Console.WriteLine("   Сверху: " + effectiveTextFrameFormat.MarginTop);
    Console.WriteLine("   Справа: " + effectiveTextFrameFormat.MarginRight);
    Console.WriteLine("   Снизу: " + effectiveTextFrameFormat.MarginBottom);
}

См. также