AngleSharp.Css by AngleSharp

<PackageReference Include="AngleSharp.Css" Version="1.0.0-beta.144" />

.NET API 457,728 bytes

 CssFractionValue

Represents a fractional value.
public enum Unit

The various fractional units.

public string CssText { get; }

Gets the CSS text representation.

public Unit Type { get; }

Gets the type of the length.

public string UnitString { get; }

Gets the representation of the unit as a string.

public double Value { get; }

Gets the value of fraction.

public CssFractionValue(double value)

Creates a new fractional value.

public CssFractionValue(double value, Unit unit)

Creates a new fractional value.

public static Unit GetUnit(string s)

Gets the unit from the enumeration for the provided string.

public static bool TryParse(string s, out CssFractionValue result)

Tries to convert the given string to a Fraction.

public int CompareTo(CssFractionValue other)

Compares the current fraction against the given one.

public bool Equals(CssFractionValue other)

Checks if the current frequency equals the given one.

public double To(Unit unit)

Converts the fraction to the given unit.