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

Namespace: [OpenTD.UserInterface](https://developer.synopsys.com/docs/thermal-desktop/opentd-reference/net4-reference/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.

```csharp theme={null}
public static class StandardOutput
```

## Inheritance

[object](https://learn.microsoft.com/dotnet/api/system.object) ←
[StandardOutput](https://developer.synopsys.com/docs/thermal-desktop/opentd-reference/net4-reference/OpenTD.UserInterface.StandardOutput.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)

## Methods

### HideDialog()

Hides the default StandardOutput dialog.

```csharp theme={null}
public static void HideDialog()
```

### ShowDialog()

Shows the default StandardOutput dialog.

```csharp theme={null}
public static void ShowDialog()
```

### Write(string)

Writes the specified message to StandardOutput.

```csharp theme={null}
public static void Write(string msg)
```

#### Parameters

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

The message.

### Write(string, params object\[])

Writes the specified format string to StandardOutput.

```csharp theme={null}
public static void Write(string format, params object[] args)
```

#### Parameters

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

`args` [object](https://learn.microsoft.com/dotnet/api/system.object)\[]

### Write(object)

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

```csharp theme={null}
public static void Write(object x)
```

#### Parameters

`x` [object](https://learn.microsoft.com/dotnet/api/system.object)

### WriteLine(string)

Writes the specified message to StandardOutput, followed by newline.

```csharp theme={null}
public static void WriteLine(string msg)
```

#### Parameters

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

The message.

### WriteLine(string, params object\[])

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

```csharp theme={null}
public static void WriteLine(string format, params object[] args)
```

#### Parameters

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

`args` [object](https://learn.microsoft.com/dotnet/api/system.object)\[]

### WriteLine(object)

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

```csharp theme={null}
public static void WriteLine(object x)
```

#### Parameters

`x` [object](https://learn.microsoft.com/dotnet/api/system.object)

The x.

### WriteLine()

Writes newline to StandardOutput.

```csharp theme={null}
public static void WriteLine()
```

### OnWrite

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

```csharp theme={null}
public static event EventHandler<WriteEventArgs> OnWrite
```

#### Event Type

[EventHandler](https://learn.microsoft.com/dotnet/api/system.eventhandler-1)\<[WriteEventArgs](https://developer.synopsys.com/docs/thermal-desktop/opentd-reference/net4-reference/OpenTD.UserInterface.WriteEventArgs.md)>

## See Also

[OutputDialog](https://developer.synopsys.com/docs/thermal-desktop/opentd-reference/net4-reference/OpenTD.UserInterface.Forms.OutputDialog.md),
[StandardOutput](https://developer.synopsys.com/docs/thermal-desktop/opentd-reference/net4-reference/OpenTD.UserInterface.StandardOutput.md).[OnWrite](#onwrite)
