GetEffective

PortionFormat.GetEffective-Methode

Erhält effektive Formatierungsdaten für Abschnitte mit angewendeter Vererbung.

public IPortionFormatEffectiveData GetEffective()

Rückgabewert

Ein IPortionFormatEffectiveData.

Beispiele

Dieses Beispiel zeigt, wie einige effektive Eigenschaften des Abschnittsformats abgerufen werden.

[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("Lateinische Schriftart: " + effectivePortionFormat.LatinFont.FontName);
	Console.WriteLine("Schriftgröße: " + effectivePortionFormat.FontHeight);
	Console.WriteLine("Fülltyp: " + effectivePortionFormat.FillFormat.FillType);
}

Siehe auch