    

 ## On this page

  

 

 # Class Legend

 Last update: 09.03.2026 

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

Represents a plot legend.

```csharp
public class Legend

```

## Inheritance

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

### Legend()

```csharp
public Legend()

```

## Properties

### Enabled

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

```

#### Property Value

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

### LegendStyle

```csharp
public LegendStyle LegendStyle { get; set; }

```

#### Property Value

[LegendStyle](OpenTD.Results.Plot.LegendStyle.md)

### Title

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

```

#### Property Value

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

## Methods

### GetLegendStyle()

```csharp
public LegendStyle GetLegendStyle()

```

#### Returns

[LegendStyle](OpenTD.Results.Plot.LegendStyle.md)

### SetLegendStyle(LegendStyle)

```csharp
public void SetLegendStyle(LegendStyle ls)

```

#### Parameters

`ls` [LegendStyle](OpenTD.Results.Plot.LegendStyle.md)