GetEffective

LineFormat.GetEffective 方法

获取应用继承的有效线条格式数据。

public ILineFormatEffectiveData GetEffective()

返回值

一个 ILineFormatEffectiveData

示例

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

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

	Console.WriteLine("样式: " + effectiveLineFormat.Style);
	Console.WriteLine("宽度: " + effectiveLineFormat.Width);
	Console.WriteLine("填充类型: " + effectiveLineFormat.FillFormat.FillType);
}

另见