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);
也可以看看
- class ShadowFormat
- class ShapeBase
- 命名空间 Aspose.Words.Drawing
- 部件 Aspose.Words