Class PhysicalUnit
Inheritance
System.Object
PhysicalUnit
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Assembly: Sdl.LanguagePlatform.Core.dll
public static class PhysicalUnit
Methods
Declaration
public static bool AreUnitKeysSameClass(CultureInfo ci, string key1, string key2)
Parameters
Type |
Name |
Description |
System.Globalization.CultureInfo |
ci |
|
System.String |
key1 |
|
System.String |
key2 |
|
Returns
Type |
Description |
System.Boolean |
|
Declaration
[Obsolete]
public static bool AreUnitsSameCategory(string unitA, string unitB)
Parameters
Type |
Name |
Description |
System.String |
unitA |
|
System.String |
unitB |
|
Returns
Type |
Description |
System.Boolean |
|
Declaration
public static bool AreUnitsSameClass(CultureInfo ci, Unit u1, Unit u2)
Parameters
Type |
Name |
Description |
System.Globalization.CultureInfo |
ci |
|
Unit |
u1 |
|
Unit |
u2 |
|
Returns
Type |
Description |
System.Boolean |
|
Declaration
public static bool AreUnitsSameClass(CultureInfo ci, string unitA, string unitB)
Parameters
Type |
Name |
Description |
System.Globalization.CultureInfo |
ci |
|
System.String |
unitA |
|
System.String |
unitB |
|
Returns
Type |
Description |
System.Boolean |
|
Declaration
[Obsolete]
public static bool AreUnitTypesCompatible(Unit a, Unit b)
Parameters
Returns
Type |
Description |
System.Boolean |
|
Declaration
public static Unit Find(string abbreviation, UnitSystem preferredSystem, CultureInfo culture)
Parameters
Type |
Name |
Description |
System.String |
abbreviation |
|
UnitSystem |
preferredSystem |
|
System.Globalization.CultureInfo |
culture |
|
Returns
Declaration
public static Unit Find(string abbreviation, CultureInfo culture)
Parameters
Type |
Name |
Description |
System.String |
abbreviation |
|
System.Globalization.CultureInfo |
culture |
|
Returns
Declaration
public static string GetAbbreviations(Unit unit)
Parameters
Type |
Name |
Description |
Unit |
unit |
|
Returns
Type |
Description |
System.String |
|
Declaration
public static UnitSystem GetDefaultSystem(UnitType type, CultureInfo culture)
Parameters
Type |
Name |
Description |
UnitType |
type |
|
System.Globalization.CultureInfo |
culture |
|
Returns
Declaration
public static string GetName(Unit unit)
Parameters
Type |
Name |
Description |
Unit |
unit |
|
Returns
Type |
Description |
System.String |
|
Declaration
public static string GetPreferredAbbreviation(Unit unit, CultureInfo culture)
Parameters
Type |
Name |
Description |
Unit |
unit |
|
System.Globalization.CultureInfo |
culture |
|
Returns
Type |
Description |
System.String |
|
Declaration
public static UnitSystem GetSystem(Unit unit)
Parameters
Type |
Name |
Description |
Unit |
unit |
|
Returns
Declaration
public static Wordlist GetUnits(CultureInfo culture, bool includeDefaultAbbreviationsWithCultureAbbreviations)
Parameters
Type |
Name |
Description |
System.Globalization.CultureInfo |
culture |
|
System.Boolean |
includeDefaultAbbreviationsWithCultureAbbreviations |
|
Returns
Declaration
public static string GetUnitsRX(CultureInfo culture, bool includeDefaultAbbreviationsWithCultureAbbreviations)
Parameters
Type |
Name |
Description |
System.Globalization.CultureInfo |
culture |
|
System.Boolean |
includeDefaultAbbreviationsWithCultureAbbreviations |
|
Returns
Type |
Description |
System.String |
|
Declaration
public static UnitType GetUnitType(Unit unit)
Parameters
Type |
Name |
Description |
Unit |
unit |
|
Returns
Declaration
public static bool IsMetric(Unit unit)
Parameters
Type |
Name |
Description |
Unit |
unit |
|
Returns
Type |
Description |
System.Boolean |
|