# MeasureConverter.Unit Property

> Gets or sets the measuring unit for the conversion.

- **Product:** TX Text Control .NET for WPF
- **Section:** Reference
- **Kind:** Property
- **Introduced:** 16.0
- **Namespace:** `TXTextControl.WPF`
- **Package:** `TXTextControl.TextControl.WPF.SDK` (assembly `TXTextControl.WPF.dll`, from the private NuGet feed or Text Control Offline Packages)
- **.NET Framework:** reference `TXTextControl.WPF.dll` from the setup
- **Path:** TX Text Control .NET for WPF > Reference > TXTextControl.WPF > MeasureConverter.Unit Property
- **449 words**
- **Web URL:** https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-wpf/measureconverter/unit-property/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-wpf/measureconverter/unit-property/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-wpf/measureconverter/unit-property/llms-full.txt

---

### Description

Gets or sets the measuring unit for the conversion.

### Syntax

```csharp
public MeasuringUnit Unit { get; set; }
```

```vbnet
Public Property Unit As MeasuringUnit
```

### Members

| Value | Description |
|---|---|
| CentiInch | The resulting string is a value in 1/100 inch. |
| Centimeter | The resulting string is a value in cm. |
| Millimeter | The resulting string is a value in mm. |
| Point | The resulting string is a value in point (1/72 inch). |
| StandardWPF | The resulting string is a value in 1/96 inch, which are device independent units in WPF. |
| Twips | The resulting string is a value in twips (1/1440 inch). |

### Examples

The following example uses `MeasureConverter.Unit` to configure unit as part of the measure converter workflow. The configured value is checked before the workflow continues.

```csharp
measureConverter.Unit = MeasuringUnit.CentiInch;
Console.WriteLine($"Unit used by Measure Converter: {measureConverter.Unit}");
```

```vbnet
measureConverter.Unit = MeasuringUnit.CentiInch
Console.WriteLine($"Unit used by Measure Converter: {measureConverter.Unit}")
```

---

## Nearby

- **Previous:** [MeasureConverter.ShowAllDecimals Property](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-wpf/measureconverter/showalldecimals-property/llms-full.txt)
- **Next:** [WPF.MiniToolbar Class](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol/wpf-minitoolbar/llms-full.txt)
