Class UnitType

Class UnitType

Namespace: Aspose.Html.Drawing
Assembly: Aspose.HTML.dll (25.2.0)

Specifies the unit of measurement.

[ComVisible(true)]
public sealed class UnitType : IEquatable<unittype>

Inheritance

objectUnitType

Implements

IEquatable<unittype>

Inherited Members

object.GetType(), object.ToString(), object.Equals(object?), object.Equals(object?, object?), object.ReferenceEquals(object?, object?), object.GetHashCode()

Fields

Auto

Measurement is not defined.

public static readonly UnitType Auto

Field Value

UnitType

Ch

Measurement is relative to width of the “0” (zero).

public static readonly UnitType Ch

Field Value

UnitType

Cm

Measurement is in centimeters

public static readonly UnitType Cm

Field Value

UnitType

Deg

Measurement is in degrees.

public static readonly UnitType Deg

Field Value

UnitType

Dpcm

Measurement is in dots per centimeters.

public static readonly UnitType Dpcm

Field Value

UnitType

Dpi

Measurement is in dots per inch.

public static readonly UnitType Dpi

Field Value

UnitType

Dppx

Measurement is in Dots per pixels unit.

public static readonly UnitType Dppx

Field Value

UnitType

Em

Measurement is relative to the height of the parent element’s font.

public static readonly UnitType Em

Field Value

UnitType

Ex

Measurement is relative to the height of the lowercase letter x of the parent element’s font.

public static readonly UnitType Ex

Field Value

UnitType

Grad

Measurement is in gradians.

public static readonly UnitType Grad

Field Value

UnitType

Hz

Measurement is in hertz.

public static readonly UnitType Hz

Field Value

UnitType

In

Measurement is in inches

public static readonly UnitType In

Field Value

UnitType

Integer

Measurement is an integer number.

public static readonly UnitType Integer

Field Value

UnitType

KHz

Measurement is in kiloHertz.

public static readonly UnitType KHz

Field Value

UnitType

Mm

Measurement is in millimeters

public static readonly UnitType Mm

Field Value

UnitType

Ms

Measurement is in milliseconds.

public static readonly UnitType Ms

Field Value

UnitType

Pc

Measurement is in picas

public static readonly UnitType Pc

Field Value

UnitType

Percentage

Measurement is in percentage.

public static readonly UnitType Percentage

Field Value

UnitType

Pt

Measurement is in points

public static readonly UnitType Pt

Field Value

UnitType

Px

Measurement is in pixels

public static readonly UnitType Px

Field Value

UnitType

Q

Measurement is in quarter-millimeters

public static readonly UnitType Q

Field Value

UnitType

Rad

Measurement is in radians.

public static readonly UnitType Rad

Field Value

UnitType

Real

Measurement is a real number.

public static readonly UnitType Real

Field Value

UnitType

Rem

Measurement is relative to font-size of the root element.

public static readonly UnitType Rem

Field Value

UnitType

S

Measurement is in seconds.

public static readonly UnitType S

Field Value

UnitType

Turn

Measurement is in turns.

public static readonly UnitType Turn

Field Value

UnitType

Vh

Measurement is relative to 1% of the height of the viewport* Try it

public static readonly UnitType Vh

Field Value

UnitType

Vmax

Measurement is relative to 1% of viewport’s* larger dimension Try it

public static readonly UnitType Vmax

Field Value

UnitType

Vmin

Measurement is relative to 1% of viewport’s* smaller dimension Try it

public static readonly UnitType Vmin

Field Value

UnitType

Vw

Measurement is relative to 1% of the width of the viewport*

public static readonly UnitType Vw

Field Value

UnitType

Methods

Equals(object)

Determines whether the specified System.Object, is equal to this instance.

public override bool Equals(object obj)

Parameters

obj object

The System.Object to compare with this instance.

Returns

bool

true if the specified System.Object is equal to this instance; otherwise, false.

Equals(UnitType)

Determines whether the specified Aspose.Html.Drawing.UnitType, is equal to this instance.

public bool Equals(UnitType other)

Parameters

other UnitType

The Aspose.Html.Drawing.UnitType to compare with this instance.

Returns

bool

true if the specified Aspose.Html.Drawing.UnitType is equal to this instance; otherwise, false.

GetHashCode()

Returns a hash code for this instance.

public override int GetHashCode()

Returns

int

A hash code for this instance, suitable for use in hashing algorithms and data structures like a hash table.

ToString()

Returns a System.String that represents this instance.

public override string ToString()

Returns

string

A System.String that represents this instance.

Operators

operator ==(UnitType, UnitType)

Determines whether the two specified Aspose.Html.Drawing.UnitType values are equal.

public static bool operator ==(UnitType first, UnitType second)

Parameters

first UnitType

The first Aspose.Html.Drawing.UnitType value to compare.

second UnitType

The second Aspose.Html.Drawing.UnitType value to compare.

Returns

bool

true if the both Aspose.Html.Drawing.UnitType are equal; otherwise, false.

explicit operator string(UnitType)

Performs an explicit conversion from Aspose.Html.Drawing.UnitType to System.String.

public static explicit operator string(UnitType value)

Parameters

value UnitType

The value.

Returns

string

The result of the conversion.

implicit operator UnitType(string)

Performs an implicit conversion from System.String to Aspose.Html.Drawing.UnitType.

public static implicit operator UnitType(string value)

Parameters

value string

The value.

Returns

UnitType

The result of the conversion.

operator !=(UnitType, UnitType)

Determines whether the two specified Aspose.Html.Drawing.UnitType values are not equal.

public static bool operator !=(UnitType first, UnitType second)

Parameters

first UnitType

The first Aspose.Html.Drawing.UnitType value to compare.

second UnitType

The second Aspose.Html.Drawing.UnitType value to compare.

Returns

bool

true if the both Aspose.Html.Drawing.UnitType are not equal; otherwise, false. </unittype>