Class PointsConverter
Provides functions for unit conversions.
Inheritance
System.Object
PointsConverter
Namespace: Syncfusion.DocIO.DLS
Assembly: Syncfusion.DocIO.UWP.dll
Syntax
public sealed class PointsConverter : Object
Constructors
PointsConverter()
Declaration
public PointsConverter()
Methods
FromCm(Single)
Converts centimeter to points.
Declaration
public static float FromCm(float centimeter)
Parameters
Type | Name | Description |
---|---|---|
System.Single | centimeter | The float that represents the value in centimeter. |
Returns
Type | Description |
---|---|
System.Single | The float that specifies the value in points. |
FromInch(Single)
Converts inch to points.
Declaration
public static float FromInch(float inch)
Parameters
Type | Name | Description |
---|---|---|
System.Single | inch | The float that represents the value in inch. |
Returns
Type | Description |
---|---|
System.Single | The float that specifies the value in points. |
FromPixel(Single)
Converts pixel to points.
Declaration
public static float FromPixel(float px)
Parameters
Type | Name | Description |
---|---|---|
System.Single | px | The float that represents the value in pixel. |
Returns
Type | Description |
---|---|
System.Single | The float that specifies the value in points. |