ShadowFormat

ShapeBase.ShadowFormat property

Gets shadow formatting for the shape.

public ShadowFormat ShadowFormat { 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.That(shadowFormat.Color.ToArgb(), Is.EqualTo(Color.Red.ToArgb()));
Assert.That(shadowFormat.Type, Is.EqualTo(ShadowType.ShadowMixed));

See Also