Skip to main content

OpenTD reference 2026 R1

Class Legend

Last update: 09.03.2026

Namespace: OpenTD.Results.Plot
Assembly: OpenTD.Results.dll

Represents a plot legend.

public class Legend

Inheritance

object ← Legend

Inherited Members

object.ToString(), object.Equals(object), object.Equals(object, object), object.ReferenceEquals(object, object), object.GetHashCode(), object.GetType(), object.MemberwiseClone()

Constructors

Legend()

public Legend()

Properties

Enabled

public bool Enabled { get; set; }

Property Value

bool

LegendStyle

public LegendStyle LegendStyle { get; set; }

Property Value

LegendStyle

Title

public string Title { get; set; }

Property Value

string

Methods

GetLegendStyle()

public LegendStyle GetLegendStyle()

Returns

LegendStyle

SetLegendStyle(LegendStyle)

public void SetLegendStyle(LegendStyle ls)

Parameters

ls LegendStyle

Connect with Ansys