VegaRise.NET
Back to DOM

OuterShadowClass

Definition

Namespace
DOM.Elements.Graphics.Effects
Assembly
DOM.dll

Represents an outer (drop) shadow effect applied to a graphic element.

Remarks

extends with a single additional flag () that controls whether the shadow rotates together with the underlying shape. All other shadow characteristics (fill color, blur, direction, distance, skew, and scale factors) are inherited from . OuterShadow Shadow RotWithShape Shadow Outer shadow configuration is composed inside, which is consumed by the theme/format-scheme pipeline. EffectStyle.OuterShadow

Examples

csharp
1// 1. Simple drop shadow
2var shadow = new OuterShadow
3{
4 Blur = new DocumentUnit(4, Units.pt),
5 DistanceFromObject = new DocumentUnit(3, Units.pt),
6 DirectionAngle = 45,
7 FillColor = Color.Black
8};
9
csharp
1// 2. Shadow that rotates with the shape
2var shadow = new OuterShadow
3{
4 Blur = new DocumentUnit(6, Units.pt),
5 DistanceFromObject = new DocumentUnit(4, Units.pt),
6 DirectionAngle = 90,
7 RotWithShape = true
8};
9
csharp
1// 3. Colored semi-transparent shadow
2var shadow = new OuterShadow
3{
4 FillColor = new Color(150, 0, 0, 0), // 60% alpha black
5 Blur = new DocumentUnit(8, Units.pt),
6 DistanceFromObject = new DocumentUnit(5, Units.pt)
7};
8
csharp
1// 4. Skewed shadow for a perspective effect
2var shadow = new OuterShadow
3{
4 Blur = new DocumentUnit(3, Units.pt),
5 HorizontalSkewAngle = 20,
6 VerticalSkewAngle = 10
7};
8
csharp
1// 5. Attach to an EffectStyle
2var effectStyle = new EffectStyle
3{
4 OuterShadow = new OuterShadow { Blur = new DocumentUnit(4, Units.pt), DistanceFromObject = new DocumentUnit(2, Units.pt) }
5};
6

Properties

RotWithShape

Gets or sets a value indicating whether the shadow rotates with its parent shape.

VegaRise.NET

Sign In

Welcome back. Please sign in to your account.

Forgot password?
or

Don't have an account? Create an account

By signing in, you agree to our Terms of Service and Privacy Policy.