GetEffective

LineFormat.GetEffective method

获取应用了继承的有效行格式数据。

public ILineFormatEffectiveData GetEffective()

返回值

AILineFormatEffectiveData

例子

此示例演示了获取形状的有效线格式属性。

[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);
}

也可以看看