    

 ## On this page

  

 

 # Class LegendStyle

 Last update: 09.03.2026 

Namespace: [OpenTD.Results.Plot](OpenTD.Results.Plot.md)  
Assembly: OpenTD.Results.dll

```csharp
public class LegendStyle

```

## Inheritance

[object](https://learn.microsoft.com/dotnet/api/system.object) ← [LegendStyle](OpenTD.Results.Plot.LegendStyle.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

### LegendStyle()

```csharp
public LegendStyle()

```

## Properties

### BorderColor

```csharp
public Color BorderColor { get; set; }

```

#### Property Value

[Color](https://learn.microsoft.com/dotnet/api/system.drawing.color)

### BorderDashStyle

```csharp
public ChartDashStyle BorderDashStyle { get; set; }

```

#### Property Value

ChartDashStyle

### BorderWidth

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

```

#### Property Value

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

### ItemFont

```csharp
public Font ItemFont { get; set; }

```

#### Property Value

[Font](https://learn.microsoft.com/dotnet/api/system.drawing.font)

### ItemOrder

```csharp
public LegendItemOrder ItemOrder { get; set; }

```

#### Property Value

LegendItemOrder

### Position

```csharp
public Docking Position { get; set; }

```

#### Property Value

Docking

### SecondaryPosition

```csharp
public StringAlignment SecondaryPosition { get; set; }

```

#### Property Value

[StringAlignment](https://learn.microsoft.com/dotnet/api/system.drawing.stringalignment)

### TableStyle

```csharp
public LegendTableStyle TableStyle { get; set; }

```

#### Property Value

LegendTableStyle

### TitleColor

```csharp
public Color TitleColor { get; set; }

```

#### Property Value

[Color](https://learn.microsoft.com/dotnet/api/system.drawing.color)

### TitleFont

```csharp
public Font TitleFont { get; set; }

```

#### Property Value

[Font](https://learn.microsoft.com/dotnet/api/system.drawing.font)