VegaRise.NET
Back to DOM

EffectStyleClass

Definition

Namespace
DOM.Styles
Assembly
DOM.dll

Container for visual effect settings that can be applied to shapes and other renderable elements.

Remarks

aggregates optional effect subcomponents such as outer shadow, 3D scene configuration and 3D shape type information. Consumers should check each property for and apply only the effects that are present. This separation keeps individual effect concerns small and composable while providing a single place to query an element's complete effect configuration. EffectStyle null Instances are typically stored inside a list and referenced from a . EffectStyles Theme

Examples

csharp
1// 1. Simple outer shadow effect
2var effect = new EffectStyle
3{
4 OuterShadow = new OuterShadow { Blur = 4, Distance = 2, Direction = 45 }
5};
6
csharp
1// 2. 3D scene with camera and lighting
2var effect = new EffectStyle
3{
4 Scene3D = new Scene3D
5 {
6 Camera = new Camera { preset = PresetCameraValues.perspectiveFront },
7 LightRig = new LightRig { Rig = LightRigValues.balanced, Direction = LightRigDirectionValues.tl }
8 }
9};
10
csharp
1// 3. 3D shape type (extrusion + bevel)
2var effect = new EffectStyle
3{
4 Shape3D = new Shape3DType
5 {
6 Material = PresetMaterialTypeValues.Metal,
7 ContourWidth = 2,
8 BevelTop = new Bevel { Width = 4, Height = 2, PresetProfileType = BevelPresetTypeValues.Slope }
9 }
10};
11
csharp
1// 4. Combined shadow + 3D
2var effect = new EffectStyle
3{
4 OuterShadow = new OuterShadow { Blur = 6, Distance = 3 },
5 Shape3D = new Shape3DType { Material = PresetMaterialTypeValues.Matte, ContourWidth = 1 }
6};
7
csharp
1// 5. Empty effect style — no effects applied
2var effect = new EffectStyle();
3

Properties

OuterShadowIOuterShadow

Gets or sets the outer shadow effect configuration.

Scene3DIScene3D

Gets or sets 3D scene parameters that affect how the element participates in a 3D context.

Gets or sets the 3D extrusion / bevel type for the element when 3D rendering is used.

VegaRiseVDocs.NET

Reset Password

Enter your email and we'll send you a link to reset your password.

Remember your password? Sign in