ShadowFormat

ShadowFormat class

表示对象的阴影格式。

要了解更多信息,请访问使用图形元素文档文章。

public class ShadowFormat

特性

姓名描述
Color { get; }获得Color表示阴影颜色的对象。 默认值为Black.
Type { get; set; }获取或设置指定的ShadowType对于 ShadowFormat.
Visible { get; }返回真的如果应用于此实例的格式可见。

方法

姓名描述
Clear()清除阴影格式。

例子

展示如何获取阴影颜色。

Document doc = new Document(MyDir + "Shadow color.docx");
Shape shape = (Shape)doc.GetChild(NodeType.Shape, 0, true);
ShadowFormat shadowFormat = shape.ShadowFormat;

Assert.AreEqual(Color.Red.ToArgb(), shadowFormat.Color.ToArgb());
Assert.AreEqual(ShadowType.ShadowMixed, shadowFormat.Type);

也可以看看