Skip to main content

OpenTD reference 2026 R1

Class StandardOutput

Last update: 09.03.2026

Namespace: OpenTD.UserInterface
Assembly: OpenTD.dll

A standard place to write output messages from OpenTD client programs. Destination defaults to an OutputDialog, but can be redirected by subscribing to the OnWrite event.

public static class StandardOutput

Inheritance

object ← StandardOutput

Inherited Members

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

Methods

HideDialog()

Hides the default StandardOutput dialog.

public static void HideDialog()

ShowDialog()

Shows the default StandardOutput dialog.

public static void ShowDialog()

Write(string)

Writes the specified message to StandardOutput.

public static void Write(string msg)

Parameters

msg string

The message.

Write(string, params object[])

Writes the specified format string to StandardOutput.

public static void Write(string format, params object[] args)

Parameters

format string

args object[]

Write(object)

Uses ToString() to write the specified object to StandardOutput.

public static void Write(object x)

Parameters

x object

WriteLine(string)

Writes the specified message to StandardOutput, followed by newline.

public static void WriteLine(string msg)

Parameters

msg string

The message.

WriteLine(string, params object[])

Writes the specified format string to StandardOutput, followed by newline.

public static void WriteLine(string format, params object[] args)

Parameters

format string

args object[]

WriteLine(object)

Uses ToString() to write the specified object to StandardOutput, followed by newline.

public static void WriteLine(object x)

Parameters

x object

The x.

WriteLine()

Writes newline to StandardOutput.

public static void WriteLine()

OnWrite

Subscribe to this event to route StandardOutput to a custom destination.

public static event EventHandler<WriteEventArgs> OnWrite

Event Type

EventHandler<WriteEventArgs>

See Also

OutputDialog, StandardOutput.OnWrite

Connect with Ansys