## ShadowFormat class

Represents shadow formatting for an object.

To learn more, visit the [Working with Graphic Elements](https://docs.aspose.com/words/net/working-with-graphic-elements/) documentation article.

```csharp
public class ShadowFormat
```

## Properties

| Name | Description |
| --- | --- |
| [Color](../../aspose.words.drawing/shadowformat/color/) { get; set; } | Gets or sets a Color object that represents the color for the shadow. The default value is Black. |
| [Transparency](../../aspose.words.drawing/shadowformat/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](../../aspose.words.drawing/shadowformat/type/) { get; set; } | Gets or sets the specified [`ShadowType`](../shadowtype/) for ShadowFormat. |
| [Visible](../../aspose.words.drawing/shadowformat/visible/) { get; } | Returns `true` if the formatting applied to this instance is visible. |

## Methods

| Name | Description |
| --- | --- |
| [Clear](../../aspose.words.drawing/shadowformat/clear/)() | Clears shadow format. |

## Examples

Shows how to get shadow color.

```csharp
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

* namespace [Aspose.Words.Drawing](../../aspose.words.drawing/)
* assembly [Aspose.Words](../../)
