AngleSharp by Florian Rappl

<PackageReference Include="AngleSharp" Version="0.5.1" />

 Length

public struct Length : IEquatable<Length>, ICssObject
Represents a length value.
public enum Unit

An enumeration of length units.

public static readonly Length Medium

Gets a medium length value.

public static readonly Length Thick

Gets a thick length value.

public static readonly Length Thin

Gets a thin length value.

public static readonly Length Zero

Gets a zero pixel length value.

public Length(float value, Unit unit)

Creates a new length value.

public static bool op_Equality(Length a, Length b)

Checks the equality of the two given lengths.

public static bool op_Inequality(Length a, Length b)

Checks the inequality of the two given lengths.

public bool Equals(Length other)

Checks if both lengths are actually equal.

public string ToCss()

Returns a CSS representation of the length.

public float ToPixel()

Converts the length to a number of pixels, if possible.