    

 ## On this page

  

 

 # Class Unit.ConvertFactor

 Last update: 16.07.2025 

Namespace: [VM](VM.md)  
Assembly: VM.dll

This class is to represent the convert factor.

```csharp
public sealed class Unit.ConvertFactor

```

#### Inheritance

[object](https://learn.microsoft.com/dotnet/api/system.object) ← [Unit.ConvertFactor](VM.Unit.ConvertFactor.md)

#### Extension Methods

[LinkPropertyItemCache.GetLinkProperties(object, LinkPropertyType)](VM.Models.Pre.Cache.LinkPropertyItemCache.md#VM_Models_Pre_Cache_LinkPropertyItemCache_GetLinkProperties_System_Object_VM_Models_Pre_LinkPropertyType_), [LinkPropertyItemCache.GetLinkPropertiesAndValues(object, LinkPropertyType)](VM.Models.Pre.Cache.LinkPropertyItemCache.md#VM_Models_Pre_Cache_LinkPropertyItemCache_GetLinkPropertiesAndValues_System_Object_VM_Models_Pre_LinkPropertyType_), [LinkPropertyItemCache.GetLinkedObjects(object, LinkPropertyType)](VM.Models.Pre.Cache.LinkPropertyItemCache.md#VM_Models_Pre_Cache_LinkPropertyItemCache_GetLinkedObjects__1_System_Object_VM_Models_Pre_LinkPropertyType_)

## Constructors

### <a id="VM_Unit_ConvertFactor__ctor_VM_Unit_VM_Unit_"></a> ConvertFactor(Unit, Unit)

Initializes a new instance of the  class

```csharp
public ConvertFactor(Unit unitFrom, Unit unitTo)

```

#### Parameters

`unitFrom` [Unit](VM.Unit.md)

The unit from.

`unitTo` [Unit](VM.Unit.md)

The unit to.

### <a id="VM_Unit_ConvertFactor__ctor_VM_Unit_VM_Unit_ConvertFactor_"></a> ConvertFactor(Unit, ConvertFactor)

Initializes a new instance of the  class

```csharp
public ConvertFactor(Unit unitFrom, Unit.ConvertFactor factor)

```

#### Parameters

`unitFrom` [Unit](VM.Unit.md)

The unit from.

`factor` [Unit](VM.Unit.md).[ConvertFactor](VM.Unit.ConvertFactor.md)

The factor.

## Properties

### <a id="VM_Unit_ConvertFactor_Default"></a> Default

Gets the default convert factor

```csharp
public static Unit.ConvertFactor Default { get; }

```

#### Property Value

[Unit](VM.Unit.md).[ConvertFactor](VM.Unit.ConvertFactor.md)

### <a id="VM_Unit_ConvertFactor_FromUCF"></a> FromUCF

Gets the from UCF.

```csharp
public double FromUCF { get; }

```

#### Property Value

[double](https://learn.microsoft.com/dotnet/api/system.double)

### <a id="VM_Unit_ConvertFactor_ToUCF"></a> ToUCF

Gets the to UCF.

```csharp
public double ToUCF { get; }

```

#### Property Value

[double](https://learn.microsoft.com/dotnet/api/system.double)

### <a id="VM_Unit_ConvertFactor_Item_System_String_"></a> this\[string\]

Gets the convert factor by using indexer

```csharp
public double this[string stringDimension] { get; }

```

#### Property Value

[double](https://learn.microsoft.com/dotnet/api/system.double)

## Methods

### <a id="VM_Unit_ConvertFactor_CalculateShiftingUnit_System_String_System_Double_"></a> CalculateShiftingUnit(string, double)

Calculate Shifting Unit.

```csharp
public double CalculateShiftingUnit(string stringType, double value)

```

#### Parameters

`stringType` [string](https://learn.microsoft.com/dotnet/api/system.string)

The unit type

`value` [double](https://learn.microsoft.com/dotnet/api/system.double)

The value

#### Returns

[double](https://learn.microsoft.com/dotnet/api/system.double)

The converted value

### <a id="VM_Unit_ConvertFactor_Dispose"></a> Dispose()

```csharp
public void Dispose()

```