AngleSharp.Css by AngleSharp

<PackageReference Include="AngleSharp.Css" Version="0.17.0" />

.NET API 406,528 bytes

 CssValueExtensions

public static class CssValueExtensions
Extensions for the ICssValue interface.
public static bool AsBoolean(this ICssValue value)

Tries to convert the value to a boolean.

public static double AsDeg(this ICssValue value)

Tries to convert the value to a number of degrees.

public static double AsDouble(this ICssValue value)

Tries to convert the value to a unitless double precision number.

public static double AsDpi(this ICssValue value)

Tries to convert the value to a number of dots per inch.

public static T AsEnum<T>(this ICssValue value) where T : struct, IComparable

Tries to match the value against a specified enumeration.

public static double AsHz(this ICssValue value)

Tries to convert the value to a number of hertz.

public static int AsInt32(this ICssValue value)

Tries to convert the value to a unitless integer number.

public static TransformMatrix AsMatrix(this ICssValue value, IRenderDimensions renderDimensions)

Tries to convert the value to a transformation matrix.

public static double AsMs(this ICssValue value)

Tries to convert the value to a number of milliseconds.

public static double AsPx(this ICssValue value, IRenderDimensions renderDimensions, RenderMode mode)

Tries to convert the value to a number of pixels.

public static int AsRgba(this ICssValue value)

Tries to convert the value to an RGBA integer.

public static string AsUrl(this ICssValue value)

Tries to convert the value to a URL.

public static bool Is(this ICssValue value, string keyword)

Tries to match the value against a known keyword.