Skip to main content

Parse Method

Parses a BoxShadow string.

Definition

Namespace: Avalonia.Media
Assembly: Avalonia.Base (in Avalonia.Base.dll)

public static BoxShadow Parse(
string s
)

Parameters

  String
The input string to parse.

Return Value

BoxShadow
A new BoxShadow

Remarks

A box shadow may be specified in multiple formats with separate components:

  • Two, three, or four length values.
  • A color value.
  • An optional inset keyword. If only two length values are given they will be interpreted as OffsetX and OffsetY. If a third value is given, it is interpreted as a Blur, and if a fourth value is given, it is interpreted as Spread.

See Also

Reference

BoxShadow Structure
Avalonia.Media Namespace