Skip to main content

Parse Method

Parse a KeySpline from a string. The string needs to contain 4 values in it for the 2 control points.

Definition

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

public static KeySpline Parse(
string value,
CultureInfo? culture
)

Parameters

  String
string with 4 values in it
  CultureInfo
culture of the string

Return Value

KeySpline
A KeySpline with the appropriate values set

Exceptions

FormatExceptionThrown if the string does not have 4 values

See Also

Reference

KeySpline Class
Avalonia.Animation Namespace