VegaRise.NET
Back to DOM

ShadowClass

Definition

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

Represents a shadow effect applied to a graphic element.

Remarks

is the base class for shadow-style effects. It carries fill color, blur, direction, distance, skew, and scale factors that together describe how a shadow is drawn relative to the source element. Most properties are nullable so that callers can rely on document or theme defaults when a value is not explicitly specified. Shadow The concrete class extends this class with a rotation flag; inner-shadow variants may be added in the future. OuterShadow

Examples

csharp
1// 1. Basic shadow
2var shadow = new Shadow
3{
4 FillColor = Color.Black,
5 Blur = new DocumentUnit(4, Units.pt),
6 DistanceFromObject = new DocumentUnit(3, Units.pt),
7 DirectionAngle = 45
8};
9
csharp
1// 2. Colored shadow with transparency
2var shadow = new Shadow
3{
4 FillColor = new Color(150, 0, 0, 0),
5 Blur = new DocumentUnit(6, Units.pt),
6 DistanceFromObject = new DocumentUnit(4, Units.pt)
7};
8
csharp
1// 3. Skewed shadow
2var shadow = new Shadow
3{
4 Blur = new DocumentUnit(3, Units.pt),
5 HorizontalSkewAngle = 15,
6 VerticalSkewAngle = 10
7};
8
csharp
1// 4. Scaled shadow (compressed vertically)
2var shadow = new Shadow
3{
4 HorizontalScaleFactor = new Percentage(100),
5 VerticalScaleFactor = new Percentage(60)
6};
7
csharp
1// 5. Direction-aligned shadow (bottom of the element)
2var shadow = new Shadow
3{
4 DirectionAngle = 90,
5 DistanceFromObject = new DocumentUnit(5, Units.pt),
6 Blur = new DocumentUnit(5, Units.pt)
7};
8

Properties

Gets or sets the alignment of the shadow.

Gets or sets the blur amount of the shadow.

DirectionAngleRotation

Gets or sets the direction angle of the shadow.

DistanceFromObjectDocumentUnit

Gets or sets the distance of the shadow from the source object.

FillColorColor

Gets or sets the fill color of the shadow.

HorizontalScaleFactorPercentage

Gets or sets the horizontal scale factor of the shadow.

HorizontalSkewAngleRotation

Gets or sets the horizontal skew angle of the shadow.

VerticalScaleFactorPercentage

Gets or sets the vertical scale factor of the shadow.

VerticalSkewAngleRotation

Gets or sets the vertical skew angle of the shadow.

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.