Color
ShadowFormat.Color property
Gets a Color object that represents the color for the shadow. The default value is Black.
public Color Color { get; }
Examples
Shows how to get shadow color.
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);
See Also
- class ShadowFormat
- namespace Aspose.Words.Drawing
- assembly Aspose.Words