- sourceValue
- The value that is going to be converted.
- sourceUnit
- The unit of measurement for the source value.
- sourceDpi
- Represents the DPI of the source value. This value is only used if the source unit of measure is .Pixel.
- destinationUnit
- The unit of measurement for the destination value.
- destinationDpi
- Represents the DPI of the destination value. This value is only used if the destination unit of measure is .Pixel.
Visual Basic (Declaration) | |
---|---|
Public Shared Function Convert( _ ByVal sourceValue As Double, _ ByVal sourceUnit As LogicalUnit, _ ByVal sourceDpi As Double, _ ByVal destinationUnit As LogicalUnit, _ ByVal destinationDpi As Double _ ) As Double |
Visual Basic (Usage) | Copy Code |
---|---|
|
C# | |
---|---|
public static double Convert( double sourceValue, LogicalUnit sourceUnit, double sourceDpi, LogicalUnit destinationUnit, double destinationDpi ) |
C++/CLI | |
---|---|
public: static double Convert( double sourceValue, LogicalUnit sourceUnit, double sourceDpi, LogicalUnit destinationUnit, double destinationDpi ) |
Parameters
- sourceValue
- The value that is going to be converted.
- sourceUnit
- The unit of measurement for the source value.
- sourceDpi
- Represents the DPI of the source value. This value is only used if the source unit of measure is .Pixel.
- destinationUnit
- The unit of measurement for the destination value.
- destinationDpi
- Represents the DPI of the destination value. This value is only used if the destination unit of measure is .Pixel.
For an example, refer to Width.
Convert converts a value measured in a unit specified by to any unit
that is specified by . The DPI is only needed when .Pixel is used define the
the area that is occuppied by one pixel.
Target Platforms: Microsoft .NET Framework 3.0, Windows 2000, Windows XP, Windows Server 2003 family, Windows Server 2008 family