PointsConverter Class
Provides functions for unit conversions.
Inheritance
System.Object
PointsConverter
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Syncfusion.DocIO.DLS
Assembly: Syncfusion.DocIO.Base.dll
Syntax
public sealed class PointsConverter
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. |