- 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 Leadtools.Forms.LogicalUnit.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 Leadtools.Forms.LogicalUnit.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 |
---|---|
Dim sourceValue As Double Dim sourceUnit As LogicalUnit Dim sourceDpi As Double Dim destinationUnit As LogicalUnit Dim destinationDpi As Double Dim value As Double value = LogicalUnitConverter.Convert(sourceValue, sourceUnit, sourceDpi, destinationUnit, destinationDpi) |
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 Leadtools.Forms.LogicalUnit.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 Leadtools.Forms.LogicalUnit.Pixel.
For an example, refer to Width.
Convert converts a value measured in a unit specified by . The DPI is only needed when Leadtools.Forms.LogicalUnit.Pixel is used define the the area that is occuppied by one pixel.
Target Platforms: Microsoft .NET Framework 2.0, Windows 2000, Windows XP, Windows Server 2003 family, Windows Server 2008 family, Windows Vista, Windows 7