struct XUnit

Parents

System.ValueType

System.IFormattable

System.IComparable<Gehtsoft.PDFFlow.Models.Shared.XUnit>

Gehtsoft.PDFFlow.Models.Shared.INull

Brief

The structure for storing numeric values of measurement units.

Static Public Fields

CentimeterFactor

The centimeter factor. The default value is 72F / 2.54F.

InchFactor

The inch factor. The default value is 72F.

MillimeterFactor

The millimeter factor. The default value is 72F / 25.4F.

Null

The null value.

PixelAccuracy

The pixel rounding precision.

PixelFactor

The pixel factor. The default value is 96F.

PointFactor

The point factor. The default value is 1F.

Zero

The zero value.

Static Public Methods

FromCentimeter

Creates an XUnit structure from a value in centimeters.

FromInch

Creates an XUnit structure from a value in inches.

FromMillimeter

Creates an XUnit structure from a value in millimeters.

FromPercent

Creates an XUnit structure from a value in percent.

FromPercent

Creates an XUnit structure as a percentage of another XUnit structure.

FromPixel

Creates an XUnit structure from a value in pixels.

FromPoint

Creates an XUnit structure from a value in points.

op_Equality

Checks whether the values of two XUnit structures are equal.

op_Implicit

Creates an XUnit structure from a string value.

op_Implicit

Creates an XUnit structure from an integer value.

op_Implicit

Creates an XUnit structure from a value in points.

op_Implicit

Gets the value of the XUnit structure in points.

op_Inequality

Checks whether the values of two XUnit structures are not equal.

Parse

Parses a string value into an XUnit structure.

Public Properties

Centimeter

The value of the measurement unit in centimeters.

Inch

The value of the measurement unit in inches.

Millimeter

The value of the measurement unit in millimeters.

Point

The value of the measurement unit in points.

Type

The measurement unit.

Value

The value.

Public Constructors

XUnit

A constructor.

Public Methods

CompareTo

Compares the value of the XUnit structure with the value of another XUnit structure and returns an integer indicating whether it is less (-1), equal (0) , or greater (1).

ConvertType

Converts the XUnit structure into another measurement unit.

Equals

Checks whether the object is an XUnit structure equivalent to this XSize structure.

GetHashCode

Gets a hash code for this XUnit structure.

GetValueOrDefault

Gets the value of the XUnit structure if any or its default value otherwise.

HasValue

Checks whether the XUnit structure has a value.

IsNull

Checks whether the XUnit structure is null.

ToString

Converts the XUnit structure into a string using the format provider.

ToString

Converts the XUnit structure into a string of a particular format using the format provider.

ToString

Converts the XUnit structure into a string.

back