> ## Documentation Index
> Fetch the complete documentation index at: https://developer.synopsys.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Class Unit.ConvertFactor

Namespace: [VM](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/2025-r1/lib/VM)\
Assembly: VM.dll

This class is to represent the convert factor.

```csharp theme={null}
public sealed class Unit.ConvertFactor
```

#### Inheritance

[object](https://learn.microsoft.com/dotnet/api/system.object) ←
[Unit.ConvertFactor](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/2025-r1/lib/VM.Unit.ConvertFactor.md)

#### Extension Methods

[LinkPropertyItemCache.GetLinkProperties(object, LinkPropertyType)](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/2025-r1/lib/VM.Models.Pre.Cache.LinkPropertyItemCache.md#VM_Models_Pre_Cache_LinkPropertyItemCache_GetLinkProperties_System_Object_VM_Models_Pre_LinkPropertyType_),
[LinkPropertyItemCache.GetLinkPropertiesAndValues(object, LinkPropertyType)](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/2025-r1/lib/VM.Models.Pre.Cache.LinkPropertyItemCache.md#VM_Models_Pre_Cache_LinkPropertyItemCache_GetLinkPropertiesAndValues_System_Object_VM_Models_Pre_LinkPropertyType_),
[LinkPropertyItemCache.GetLinkedObjects\<T>(object, LinkPropertyType)](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/2025-r1/lib/VM.Models.Pre.Cache.LinkPropertyItemCache.md#VM_Models_Pre_Cache_LinkPropertyItemCache_GetLinkedObjects__1_System_Object_VM_Models_Pre_LinkPropertyType_)

## Constructors

### ConvertFactor(Unit, Unit)

Initializes a new instance of the [ConvertFactor](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/2025-r1/lib/VM.Unit.ConvertFactor.md) class

```csharp theme={null}
public ConvertFactor(Unit unitFrom, Unit unitTo)
```

#### Parameters

`unitFrom` [Unit](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/2025-r1/lib/VM.Unit.md)

The unit from.

`unitTo` [Unit](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/2025-r1/lib/VM.Unit.md)

The unit to.

### ConvertFactor(Unit, ConvertFactor)

Initializes a new instance of the [ConvertFactor](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/2025-r1/lib/VM.Unit.ConvertFactor.md) class

```csharp theme={null}
public ConvertFactor(Unit unitFrom, Unit.ConvertFactor factor)
```

#### Parameters

`unitFrom` [Unit](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/2025-r1/lib/VM.Unit.md)

The unit from.

`factor` [Unit](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/2025-r1/lib/VM.Unit.md).[ConvertFactor](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/2025-r1/lib/VM.Unit.ConvertFactor.md)

The factor.

## Properties

### Default

Gets the default convert factor

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

#### Property Value

[Unit](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/2025-r1/lib/VM.Unit.md).[ConvertFactor](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/2025-r1/lib/VM.Unit.ConvertFactor.md)

### FromUCF

Gets the from UCF.

```csharp theme={null}
public double FromUCF { get; }
```

#### Property Value

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

### ToUCF

Gets the to UCF.

```csharp theme={null}
public double ToUCF { get; }
```

#### Property Value

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

### this\[string]

Gets the convert factor by using indexer

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

#### Property Value

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

## Methods

### CalculateShiftingUnit(string, double)

Calculate Shifting Unit.

```csharp theme={null}
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

### Dispose()

```csharp theme={null}
public void Dispose()
```
