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

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

Used by the StandardOutput.OnWrite event to route StandardOutput to a custom destination.

```csharp theme={null}
public class WriteEventArgs : EventArgs
```

## Inheritance

[object](https://learn.microsoft.com/dotnet/api/system.object) ←
[EventArgs](https://learn.microsoft.com/dotnet/api/system.eventargs) ←
[WriteEventArgs](https://developer.synopsys.com/docs/thermal-desktop/opentd-reference/net4-reference/OpenTD.UserInterface.WriteEventArgs.md)

## Inherited Members

[EventArgs.Empty](https://learn.microsoft.com/dotnet/api/system.eventargs.empty),
[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

### WriteEventArgs(string)

```csharp theme={null}
public WriteEventArgs(string msg)
```

#### Parameters

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

## Properties

### Message

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

#### Property Value

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

## Methods

### ToString()

Returns a string that represents the current object.

```csharp theme={null}
public override string ToString()
```

#### Returns

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

A string that represents the current object.

## See Also

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