Table of Contents

Class ShadowStyle

Namespace
BlazOrbit.Components
Assembly
BlazOrbit.Core.dll

Fluent builder for constructing CSS box-shadow styles.

public sealed class ShadowStyle
Inheritance
object
ShadowStyle

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

y int
blur int
opacity float
x int
spread int
color string
inset bool

Returns

ShadowStyle

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

y int
blur int
opacity float
x int
spread int
color string
inset bool

Returns

ShadowStyle

ToCss()

Generates the CSS box-shadow value.

public string ToCss()

Returns

string