GetEffective
TextStyle.GetEffective метод
Получает данные о форматировании эффективного стиля текста с примененным наследованием.
public ITextStyleEffectiveData GetEffective()
Возвращаемое значение
Примеры
Этот пример демонстрирует получение некоторых свойств эффективного стиля текста.
[C#]
using (Presentation pres = new Presentation(@"MyPresentation.pptx"))
{
IAutoShape shape = pres.Slides[0].Shapes[0] as IAutoShape;
ITextStyleEffectiveData effectiveTextStyle = shape.TextFrame.TextFrameFormat.TextStyle.GetEffective();
for (int i = 0; i <= 8; i++)
{
IParagraphFormatEffectiveData effectiveStyleLevel = effectiveTextStyle.GetLevel(i);
Console.WriteLine("= Эффективное форматирование абзаца для уровня стиля #" + i + " =");
Console.WriteLine("Глубина: " + effectiveStyleLevel.Depth);
Console.WriteLine("Отступ: " + effectiveStyleLevel.Indent);
Console.WriteLine("Выравнивание: " + effectiveStyleLevel.Alignment);
Console.WriteLine("Выравнивание шрифта: " + effectiveStyleLevel.FontAlignment);
}
}
Смотрите Также
- интерфейс ITextStyleEffectiveData
- класс TextStyle
- пространство имен Aspose.Slides
- сборка Aspose.Slides