Class ShadowStyle
- Namespace
- BlazOrbit.Components
- Assembly
- BlazOrbit.Core.dll
Fluent builder for constructing CSS box-shadow styles.
public sealed class ShadowStyle
- Inheritance
-
objectShadowStyle
Methods
Add(int, int, float, int, int, string?, bool)
Adds an additional shadow line to the style.
public ShadowStyle Add(int y, int blur, float opacity = 0.2, int x = 0, int spread = 0, string? color = null, bool inset = false)
Parameters
yintblurintopacityfloatxintspreadintcolorstringinsetbool
Returns
Create(int, int, float, int, int, string?, bool)
Creates a new ShadowStyle with a single shadow line.
public static ShadowStyle Create(int y, int blur, float opacity = 0.2, int x = 0, int spread = 0, string? color = null, bool inset = false)
Parameters
yintblurintopacityfloatxintspreadintcolorstringinsetbool
Returns
ToCss()
Generates the CSS box-shadow value.
public string ToCss()
Returns
- string