Create a unit from a string.
Namespace: TallComponents.PDFAssembly: TallComponents.PDF.Controls.WinForms (in TallComponents.PDF.Controls.WinForms.dll) Version: 2.0.46.0
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
| Unit | Description |
|---|---|
| pt | Point, 1/72 Inch |
| pica | Pica, 1/12 Point |
| px | Pixel, assumes a resolution of 72dpi. |
| m | Meter |
| cm | Centimeter, 2.54cm is 1 Inch |
| mm | Millimeter |
| um | Micrometer |
| in | Inch |
| ft | Foot, 12 inch is 1 foot |
| yd | Yard, 36 inch is 1 yard |
| % | Percentage. Values of this type are converted into a fraction. (e.g. 50% is 0.5 ) |