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; set; }Gets or sets a Color object that represents the color for the shadow. The default value is Black.
Transparency { get; set; }Gets or sets the degree of transparency for the shadow effect as a value between 0.0 (opaque) and 1.0 (clear). The default value is 0.0.
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.That(shadowFormat.Color.ToArgb(), Is.EqualTo(Color.Red.ToArgb()));
Assert.That(shadowFormat.Type, Is.EqualTo(ShadowType.ShadowMixed));

See Also