AngleSharp.Css by AngleSharp

<PackageReference Include="AngleSharp.Css" Version="1.0.0-alpha-109" />

.NET API 442,880 bytes

 Resolution

Represents a resolution value.
public enum Unit

The various resolution 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 resolution.

public Resolution(double value)

Creates a new resolution value.

public Resolution(double value, Unit unit)

Creates a new resolution value.

public static Unit GetUnit(string s)

Gets the unit from the enumeration for the provided string.

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

Tries to convert the given string to a Resolution.

public int CompareTo(Resolution other)

Compares the current resolution against the given one.

public bool Equals(Resolution other)

Checks if the current resolution equals the given one.

public double To(Unit unit)

Converts the resolution to the given unit.

public double ToDotsPerPixel()

Converts the resolution to a per pixel density.