> ## 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 Legend

Namespace: [OpenTD.Results.Plot](https://developer.synopsys.com/docs/thermal-desktop/opentd-reference/net4-reference/OpenTD.Results.Plot)\
Assembly: OpenTD.Results.dll

Represents a plot legend.

```csharp theme={null}
public class Legend
```

## Inheritance

[object](https://learn.microsoft.com/dotnet/api/system.object) ←
[Legend](https://developer.synopsys.com/docs/thermal-desktop/opentd-reference/net4-reference/OpenTD.Results.Plot.Legend.md)

## Inherited Members

[object.ToString()](https://learn.microsoft.com/dotnet/api/system.object.tostring),
[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.ReferenceEquals(object, object)](https://learn.microsoft.com/dotnet/api/system.object.referenceequals),
[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)

## Constructors

### Legend()

```csharp theme={null}
public Legend()
```

## Properties

### Enabled

```csharp theme={null}
public bool Enabled { get; set; }
```

#### Property Value

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

### LegendStyle

```csharp theme={null}
public LegendStyle LegendStyle { get; set; }
```

#### Property Value

[LegendStyle](https://developer.synopsys.com/docs/thermal-desktop/opentd-reference/net4-reference/OpenTD.Results.Plot.LegendStyle.md)

### Title

```csharp theme={null}
public string Title { get; set; }
```

#### Property Value

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

## Methods

### GetLegendStyle()

```csharp theme={null}
public LegendStyle GetLegendStyle()
```

#### Returns

[LegendStyle](https://developer.synopsys.com/docs/thermal-desktop/opentd-reference/net4-reference/OpenTD.Results.Plot.LegendStyle.md)

### SetLegendStyle(LegendStyle)

```csharp theme={null}
public void SetLegendStyle(LegendStyle ls)
```

#### Parameters

`ls` [LegendStyle](https://developer.synopsys.com/docs/thermal-desktop/opentd-reference/net4-reference/OpenTD.Results.Plot.LegendStyle.md)
