Skip to main content

UnitConverter

Version: 9.0

cete.dynamicpdf.unitconverter

UnitConverter​

Utility for converting to and from typesetting points.

public class UnitConverter
Public Class UnitConverter

Inheritance: Object → UnitConverter

Licensing​

This class is a DynamicPDF Generator Community Edition feature.

Methods​

Equals(Object)​

Determines whether the specified Object is equal to the current Object . (Inherited from Object)

public bool Equals(Object obj)
Function Equals(obj As Object) As Boolean

Parameters​

The Object to compare with the current Object .

Returns​

true if the specified Object is equal to the current Object ; otherwise, false.

GetHashCode()​

Serves as a hash function for a particular type. (Inherited from Object)

public int GetHashCode()
Function GetHashCode() As Integer

Returns​

A hash code for the current Object .

GetType()​

Gets the Type of the current instance. (Inherited from Object)

public Type GetType()
Function GetType() As Type

Returns​

The Type instance that represents the exact runtime type of the current instance.

InchesToPoints(Single)​

Converts from inches to typesetting points.

public static float InchesToPoints(float size)
Shared Function InchesToPoints(size As Single) As Single

Parameters​

Size in inches.

Returns​

The size in inches.

MillimetersToPoints(Single)​

Converts from millimeters to typesetting points.

public static float MillimetersToPoints(float size)
Shared Function MillimetersToPoints(size As Single) As Single

Parameters​

Size in millimeters.

Returns​

The size in typesetting points.

PointsToInches(Single)​

Converts from typesetting points to inches.

public static float PointsToInches(float size)
Shared Function PointsToInches(size As Single) As Single

Parameters​

Size in points.

Returns​

The size in inches.

PointsToMillimeters(Single)​

Converts from typesetting points to millimeters.

public static float PointsToMillimeters(float size)
Shared Function PointsToMillimeters(size As Single) As Single

Parameters​

Size in points.

Returns​

The size in typesetting points.

ToString()​

Returns a String that represents the current Object . (Inherited from Object)

public string ToString()
Function ToString() As String

Returns​

A String that represents the current Object .

See Also​

ceTe.DynamicPDF