Class UnitConverter
Inheritance
System.Object
UnitConverter
Assembly: DRIT.Spreadsheet.dll
Syntax
public static class UnitConverter : object
Fields
CentimeterPerInch
Declaration
public const double CentimeterPerInch = null
Field Value
Type |
Description |
System.Double |
|
DefaultDpi
Declaration
public const int DefaultDpi = null
Field Value
Type |
Description |
System.Int32 |
|
OpenXmlAngleConversionFactor
Declaration
public const double OpenXmlAngleConversionFactor = null
Field Value
Type |
Description |
System.Double |
|
Methods
Convert(ScreenMeasurementUnit, ScreenMeasurementUnit, Double)
Declaration
public static double Convert(ScreenMeasurementUnit from, ScreenMeasurementUnit to, double value)
Parameters
Returns
Type |
Description |
System.Double |
|
FromHiMetricToPoint(Double)
Declaration
public static double FromHiMetricToPoint(double himetricValue)
Parameters
Type |
Name |
Description |
System.Double |
himetricValue |
|
Returns
Type |
Description |
System.Double |
|
GetPointSizeWithWholePixels(Double)
Declaration
public static double GetPointSizeWithWholePixels(double value)
Parameters
Type |
Name |
Description |
System.Double |
value |
|
Returns
Type |
Description |
System.Double |
|
ToEmuFromInches(Double)
Declaration
public static long ToEmuFromInches(double value)
Parameters
Type |
Name |
Description |
System.Double |
value |
|
Returns
Type |
Description |
System.Int64 |
|
ToEmuFromPixel(Double)
Declaration
public static long ToEmuFromPixel(double value)
Parameters
Type |
Name |
Description |
System.Double |
value |
|
Returns
Type |
Description |
System.Int64 |
|
ToEmuFromPixel(Nullable<Double>)
Declaration
public static long? ToEmuFromPixel(double? value)
Parameters
Type |
Name |
Description |
System.Nullable<System.Double> |
value |
|
Returns
Type |
Description |
System.Nullable<System.Int64> |
|
ToEmuFromPoint(Double)
Declaration
public static long ToEmuFromPoint(double value)
Parameters
Type |
Name |
Description |
System.Double |
value |
|
Returns
Type |
Description |
System.Int64 |
|
ToInchesFromEmu(Int64)
Declaration
public static double ToInchesFromEmu(long value)
Parameters
Type |
Name |
Description |
System.Int64 |
value |
|
Returns
Type |
Description |
System.Double |
|
ToPixelFromEmu(Double)
Declaration
public static double ToPixelFromEmu(double value)
Parameters
Type |
Name |
Description |
System.Double |
value |
|
Returns
Type |
Description |
System.Double |
|
ToPixelFromEmu(Int64)
Declaration
public static double ToPixelFromEmu(long value)
Parameters
Type |
Name |
Description |
System.Int64 |
value |
|
Returns
Type |
Description |
System.Double |
|
ToPixelFromEmu(Nullable<Int64>)
Declaration
public static double? ToPixelFromEmu(long? value)
Parameters
Type |
Name |
Description |
System.Nullable<System.Int64> |
value |
|
Returns
Type |
Description |
System.Nullable<System.Double> |
|
ToPixelFromPoint(Double)
Declaration
public static double ToPixelFromPoint(double value)
Parameters
Type |
Name |
Description |
System.Double |
value |
|
Returns
Type |
Description |
System.Double |
|
ToPixelsFromTwips(Int32)
Declaration
public static double ToPixelsFromTwips(int twips)
Parameters
Type |
Name |
Description |
System.Int32 |
twips |
|
Returns
Type |
Description |
System.Double |
|
ToPointFromEmu(Double)
Declaration
public static double ToPointFromEmu(double value)
Parameters
Type |
Name |
Description |
System.Double |
value |
|
Returns
Type |
Description |
System.Double |
|
ToPointFromEmu(Int64)
Declaration
public static double ToPointFromEmu(long value)
Parameters
Type |
Name |
Description |
System.Int64 |
value |
|
Returns
Type |
Description |
System.Double |
|
ToPointFromPixel(Double)
Declaration
public static double ToPointFromPixel(double value)
Parameters
Type |
Name |
Description |
System.Double |
value |
|
Returns
Type |
Description |
System.Double |
|
ToPointFromTwips(Int32)
Declaration
public static double ToPointFromTwips(int value)
Parameters
Type |
Name |
Description |
System.Int32 |
value |
|
Returns
Type |
Description |
System.Double |
|