Create a unit from a string.

Namespace: TallComponents.PDF
Assembly: TallComponents.PDF.Kit (in TallComponents.PDF.Kit.dll) Version: 3.0.69.1

Syntax

C#
public static Unit Parse(
	string unitString
)
Visual Basic
Public Shared Function Parse ( _
	unitString As String _
) As Unit

Parameters

unitString
Type: System..::..String

[Missing <param name="unitString"/> documentation for "M:TallComponents.PDF.Unit.Parse(System.String)"]

Return Value

Remarks

UnitDescription
ptPoint, 1/72 Inch
picaPica, 1/12 Point
pxPixel, assumes a resolution of 72dpi.
mMeter
cmCentimeter, 2.54cm is 1 Inch
mmMillimeter
umMicrometer
inInch
ftFoot, 12 inch is 1 foot
ydYard, 36 inch is 1 yard
%Percentage. Values of this type are converted into a fraction. (e.g. 50% is 0.5 )

See Also