ShadowFormat

ShadowFormat class

Represents shadow formatting for an object.

To learn more, visit the Working with Graphic Elements documentation article.

public class ShadowFormat

Properties

NameDescription
Color { get; }Gets a Color object that represents the color for the shadow. The default value is Black.
Type { get; set; }Gets or sets the specified ShadowType for ShadowFormat.
Visible { get; }Returns true if the formatting applied to this instance is visible.

Methods

NameDescription
Clear()Clears shadow format.

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