GetEffective

PortionFormat.GetEffective method

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

public IPortionFormatEffectiveData GetEffective()

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

AIPortionFormatEffectiveData.

Примеры

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

[C#]
using (Presentation pres = new Presentation(@"MyPresentation.pptx"))
{
	IAutoShape shape = pres.Slides[0].Shapes[0] as IAutoShape;
	IPortionFormatEffectiveData effectivePortionFormat = shape.TextFrame.Paragraphs[0].Portions[0].PortionFormat.GetEffective();

	Console.WriteLine("Latin font: " + effectivePortionFormat.LatinFont.FontName);
	Console.WriteLine("Font height: " + effectivePortionFormat.FontHeight);
	Console.WriteLine("Fill type: " + effectivePortionFormat.FillFormat.FillType);
}

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