Table of Contents

Property MainThreadId

Namespace
Terminal.Gui.App
Assembly
Terminal.Gui.dll

MainThreadId

Gets or sets the managed thread ID of the application's main UI thread, which is set during Init(string?) and used to determine if code is executing on the main thread.

int? MainThreadId { get; }

Property Value

int?

The managed thread ID of the main UI thread, or null if the application is not initialized.