Class Unit
Contains methods for converting DIP (Device Independent Pixels) to other unit types.
Inheritance
Inherited Members
Namespace: Telerik.Windows.Documents.Media
Assembly: Telerik.Windows.Documents.Core.dll
Syntax
public static class Unit
Methods
CmToDip(Double)
Converts centimeters to dips.
Declaration
public static double CmToDip(double value)
Parameters
System. Centimeters. |
Returns
System. Pixels. |
DegreeToWavelength(Double)
Converts degree to wave length.
Declaration
public static double DegreeToWavelength(double degrees)
Parameters
System. Angle in degrees. |
Returns
System. Angle in 60000ths of degree. |
DipToCm(Double)
Converts dips to centimeters.
Declaration
public static double DipToCm(double value)
Parameters
System. Pixels. |
Returns
System. Centimeters. |
DipToEmu(Double)
Converts dips to EMUs.
Declaration
public static double DipToEmu(double value)
Parameters
System. Pixels. |
Returns
System. EMUs. |
DipToEmuI(Double)
Converts dips to EMUs.
Declaration
public static int DipToEmuI(double value)
Parameters
System. Pixels. |
Returns
System. EMUs. |
DipToInch(Double)
Converts dips to inches.
Declaration
public static double DipToInch(double value)
Parameters
System. Pixels. |
Returns
System. Inches. |
DipToMm(Double)
Converts dips to millimeters.
Declaration
public static double DipToMm(double value)
Parameters
System. Pixels. |
Returns
System. Millimeters. |
DipToPica(Double)
Converts dips to picas.
Declaration
public static double DipToPica(double value)
Parameters
System. Pixels. |
Returns
System. Picas. |
DipToPoint(Double)
Converts dips to points.
Declaration
public static double DipToPoint(double value)
Parameters
System. Pixels. |
Returns
System. Points. |
DipToPointI(Double)
Converts dips to points.
Declaration
public static int DipToPointI(double pixels)
Parameters
System. Pixels. |
Returns
System. Points. |
DipToTwip(Double)
Converts dips to twips.
Declaration
public static double DipToTwip(double value)
Parameters
System. Pixels. |
Returns
System. Twips. |
DipToTwipF(Double)
Converts dips to twips.
Declaration
public static float DipToTwipF(double value)
Parameters
System. Pixels. |
Returns
System. Twips. |
DipToTwipI(Double)
Converts dips to twips.
Declaration
public static int DipToTwipI(double value)
Parameters
System. Pixels. |
Returns
System. Twips. |
DipToUnit(Double, UnitType)
Converts DIPs to units.
Declaration
public static double DipToUnit(double value, UnitType type)
Parameters
System. Pixels. |
Unit UnitType. |
Returns
System. Units. |
EmToPixel(Double, Double)
Converts units of measurement to pixels.
Declaration
public static double EmToPixel(double basePixelSize, double value)
Parameters
System. Base pixel size. |
System. Ems. |
Returns
System. Pixels. |
EmuToDip(Double)
Converts EMUs to dips.
Declaration
public static double EmuToDip(double value)
Parameters
System. EMUs. |
Returns
System. Pixels. |
EmuToInch(Int64)
Converts EMUs to inches.
Declaration
public static double EmuToInch(long emu)
Parameters
System. EMUs. |
Returns
System. Inches. |
InchToDip(Double)
Converts inches to dips.
Declaration
public static double InchToDip(double value)
Parameters
System. Inches. |
Returns
System. Pixels. |
InchToEmu(Double)
Converts inches to EMUs.
Declaration
public static long InchToEmu(double inch)
Parameters
System. Inches. |
Returns
System. EMUs. |
IsRelativeUnitType(UnitType)
Determines whether unit type is relative.
Declaration
public static bool IsRelativeUnitType(UnitType type)
Parameters
Unit The unit type. |
Returns
System.
|
MmToDip(Double)
Converts millimeters to dips.
Declaration
public static double MmToDip(double value)
Parameters
System. Millimeters. |
Returns
System. Pixels. |
PercentToPixel(Double, Double)
Converts percents to pixels.
Declaration
public static double PercentToPixel(double basePixelSize, double value)
Parameters
System. Base pixel size. |
System. Percents. |
Returns
System. Pixels. |
PicaToDip(Double)
Converts to points dips.
Declaration
public static double PicaToDip(double value)
Parameters
System. Picas. |
Returns
System. Pixels. |
PixelToEm(Double, Double)
Converts pixels to units of measurement.
Declaration
public static double PixelToEm(double basePixelSize, double value)
Parameters
System. Base pixel size. |
System. Pixels. |
Returns
System. Ems. |
PixelToPercent(Double, Double)
Converts pixels to percents.
Declaration
public static double PixelToPercent(double basePixelSize, double value)
Parameters
System. Base pixel size. |
System. Pixels. |
Returns
System. Percents. |
PixelToUnit(Double, Double, UnitType)
Converts Pixels the unit.
Declaration
public static double PixelToUnit(double basePixelSize, double value, UnitType type)
Parameters
System. Base pixel size. |
System. Pixel. |
Unit The type. |
Returns
System.
|
PointToDip(Double)
Converts to points dips.
Declaration
public static double PointToDip(double value)
Parameters
System. Points. |
Returns
System. Pixels. |
TwipToDip(Double)
Converts twips to dips.
Declaration
public static double TwipToDip(double value)
Parameters
System. Twips. |
Returns
System. Pixels. |
TwipToDipF(Double)
Converts twips to dips.
Declaration
public static float TwipToDipF(double value)
Parameters
System. Twips. |
Returns
System. Dips. |
TwipToDipI(Double)
Converts twips to dips.
Declaration
public static int TwipToDipI(double value)
Parameters
System. Twips. |
Returns
System. Dips. |
UnitToDip(Double, UnitType)
Converts Units to dips.
Declaration
public static double UnitToDip(double value, UnitType type)
Parameters
System. Units. |
Unit UnitType. |
Returns
System. Pixels. |
UnitToPixel(Double, Double, UnitType)
Converts Units to pixel.
Declaration
public static double UnitToPixel(double basePixelSize, double value, UnitType type)
Parameters
System. Base pixel size. |
System. The value. |
Unit The type. |
Returns
System.
|
WavelengthToDegree(Int32)
Converts wave length to degree.
Declaration
public static double WavelengthToDegree(int wavelength)
Parameters
System. wave length. |
Returns
System. Points. |
WavelengthToDegree(Int64)
Converts wave length to degree.
Declaration
public static double WavelengthToDegree(long wavelength)
Parameters
System. wave length. |
Returns
System. Points. |