Parse Method
Parses a BoxShadow string.
Definition
Namespace: Avalonia.Media
Assembly: Avalonia.Base (in Avalonia.Base.dll)
- C#
- VB
- F#
public static BoxShadow Parse(
string s
)
Public Shared Function Parse (
s As String
) As BoxShadow
static member Parse :
s : string -> BoxShadow
Parameters
- String
- The input string to parse.
Return Value
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.