    

 ## On this page

  

 

 # Class GraphicsTextPreferences

 Last update: 09.03.2026 

Namespace: [OpenTD.UserPreferences](OpenTD.UserPreferences.md)  
Assembly: OpenTD.dll

Use to set the global dwg text preferences.

```csharp
[MessagePackObject(true)]
public class GraphicsTextPreferences : Preferences, IUpdatable

```

## Inheritance

[object](https://learn.microsoft.com/dotnet/api/system.object) ← TdConnected ← Preferences ← [GraphicsTextPreferences](OpenTD.UserPreferences.GraphicsTextPreferences.md)

## Implements

[IUpdatable](OpenTD.IUpdatable.md)

## Inherited Members

[object.Equals(object?)](https://learn.microsoft.com/dotnet/api/system.object.equals#system-object-equals(system-object)), [object.Equals(object?, object?)](https://learn.microsoft.com/dotnet/api/system.object.equals#system-object-equals(system-object-system-object)), [object.GetHashCode()](https://learn.microsoft.com/dotnet/api/system.object.gethashcode), [object.GetType()](https://learn.microsoft.com/dotnet/api/system.object.gettype), [object.MemberwiseClone()](https://learn.microsoft.com/dotnet/api/system.object.memberwiseclone), [object.ReferenceEquals(object?, object?)](https://learn.microsoft.com/dotnet/api/system.object.referenceequals), [object.ToString()](https://learn.microsoft.com/dotnet/api/system.object.tostring)

## Constructors

### GraphicsTextPreferences()

```csharp
public GraphicsTextPreferences()

```

### GraphicsTextPreferences(ThermalDesktop)

```csharp
public GraphicsTextPreferences(ThermalDesktop _td)

```

#### Parameters

`_td` [ThermalDesktop](OpenTD.ThermalDesktop.md)

## Properties

### compartmentTextColor

```csharp
public int compartmentTextColor { get; set; }

```

#### Property Value

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

### compartmentTextScale

```csharp
public double compartmentTextScale { get; set; }

```

#### Property Value

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

### compartmentTextShow

```csharp
public bool compartmentTextShow { get; set; }

```

#### Property Value

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

### compartmentTextStringIndex

```csharp
public int compartmentTextStringIndex { get; set; }

```

#### Property Value

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

### fklocTextColor

```csharp
public int fklocTextColor { get; set; }

```

#### Property Value

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

### fklocTextScale

```csharp
public double fklocTextScale { get; set; }

```

#### Property Value

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

### fklocTextShow

```csharp
public bool fklocTextShow { get; set; }

```

#### Property Value

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

### fklocTextStringIndex

```csharp
public int fklocTextStringIndex { get; set; }

```

#### Property Value

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

### fontName

```csharp
public string fontName { get; set; }

```

#### Property Value

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

### lumpTextColor

```csharp
public int lumpTextColor { get; set; }

```

#### Property Value

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

### lumpTextScale

```csharp
public double lumpTextScale { get; set; }

```

#### Property Value

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

### lumpTextShow

```csharp
public bool lumpTextShow { get; set; }

```

#### Property Value

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

### lumpTextStringIndex

```csharp
public int lumpTextStringIndex { get; set; }

```

#### Property Value

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

### nodeTextColor

```csharp
public int nodeTextColor { get; set; }

```

#### Property Value

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

### nodeTextScale

```csharp
public double nodeTextScale { get; set; }

```

#### Property Value

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

### nodeTextShow

```csharp
public bool nodeTextShow { get; set; }

```

#### Property Value

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

### nodeTextStringIndex

```csharp
public int nodeTextStringIndex { get; set; }

```

#### Property Value

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

### numbersSize

```csharp
public Dimensional<ModelLength> numbersSize { get; set; }

```

#### Property Value

[Dimensional](OpenTD.Dimension.Dimensional-1.md)&lt;[ModelLength](OpenTD.Dimension.ModelLength.md)&gt;

### pathTextColor

```csharp
public int pathTextColor { get; set; }

```

#### Property Value

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

### pathTextScale

```csharp
public double pathTextScale { get; set; }

```

#### Property Value

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

### pathTextShow

```csharp
public bool pathTextShow { get; set; }

```

#### Property Value

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

### pathTextStringIndex

```csharp
public int pathTextStringIndex { get; set; }

```

#### Property Value

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

### pipeTextColor

```csharp
public int pipeTextColor { get; set; }

```

#### Property Value

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

### pipeTextScale

```csharp
public double pipeTextScale { get; set; }

```

#### Property Value

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

### pipeTextShow

```csharp
public bool pipeTextShow { get; set; }

```

#### Property Value

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

### pipeTextStringIndex

```csharp
public int pipeTextStringIndex { get; set; }

```

#### Property Value

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

### portTextColor

```csharp
public int portTextColor { get; set; }

```

#### Property Value

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

### portTextScale

```csharp
public double portTextScale { get; set; }

```

#### Property Value

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

### portTextShow

```csharp
public bool portTextShow { get; set; }

```

#### Property Value

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

### portTextStringIndex

```csharp
public int portTextStringIndex { get; set; }

```

#### Property Value

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

### screenNumberPercent

```csharp
public double screenNumberPercent { get; set; }

```

#### Property Value

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

### showFluidSubmodelNames

```csharp
public bool showFluidSubmodelNames { get; set; }

```

#### Property Value

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

### showNodeSubmodelNames

```csharp
public bool showNodeSubmodelNames { get; set; }

```

#### Property Value

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

### teeTextColor

```csharp
public int teeTextColor { get; set; }

```

#### Property Value

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

### teeTextScale

```csharp
public double teeTextScale { get; set; }

```

#### Property Value

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

### teeTextShow

```csharp
public bool teeTextShow { get; set; }

```

#### Property Value

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

### teeTextStringIndex

```csharp
public int teeTextStringIndex { get; set; }

```

#### Property Value

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

### tieTextColor

```csharp
public int tieTextColor { get; set; }

```

#### Property Value

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

### tieTextScale

```csharp
public double tieTextScale { get; set; }

```

#### Property Value

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

### tieTextShow

```csharp
public bool tieTextShow { get; set; }

```

#### Property Value

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

### tieTextStringIndex

```csharp
public int tieTextStringIndex { get; set; }

```

#### Property Value

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

### useScreenNumberPercent

```csharp
public bool useScreenNumberPercent { get; set; }

```

#### Property Value

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

## Methods

### Update()

Updates the TD entity with the latest client data.

```csharp
public void Update()

```

### UpdateFromTD()

Updates the client-side instance with the latest data from the TD entity.

```csharp
public void UpdateFromTD()

```