GetEffective

LineFormat.GetEffective method

Gets effective line formatting data with the inheritance applied.

public ILineFormatEffectiveData GetEffective()

Return Value

A ILineFormatEffectiveData.

Examples

This example demonstrates getting shape’s effective line format properties.

[C#]
using (Presentation pres = new Presentation(@"MyPresentation.pptx"))
{
	ILineFormatEffectiveData effectiveLineFormat = pres.Slides[0].Shapes[0].LineFormat.GetEffective();

	Console.WriteLine("Style: " + effectiveLineFormat.Style);
	Console.WriteLine("Width: " + effectiveLineFormat.Width);
	Console.WriteLine("Fill type: " + effectiveLineFormat.FillFormat.FillType);
}

See Also