ShadowFormat

ShapeBase.ShadowFormat property

获取形状的阴影格式。

public ShadowFormat ShadowFormat { get; }

例子

展示如何获取阴影颜色。

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

也可以看看