Constructor TrayIcon
| Edit this page View SourceTrayIcon(uint, IconId, string)
Initializes a new instance of the TrayIcon class with the specified icon and tooltip text.
Declaration
public TrayIcon(uint trayiconId, IconId iconId, string tooltip)
Parameters
| Type | Name | Description |
|---|---|---|
| uint | trayiconId | A unique identifier for the tray icon. |
| IconId | iconId | The identifier of the icon to display in the system tray. Determines the visual appearance of the tray icon. |
| string | tooltip | The tooltip text to display when the user hovers over the tray icon. Maximum length: 128 characters. |
TrayIcon(uint, string, string)
Initializes a new instance of the TrayIcon class with the specified icon and tooltip text.
Declaration
public TrayIcon(uint trayiconId, string iconPath, string tooltip)
Parameters
| Type | Name | Description |
|---|---|---|
| uint | trayiconId | A unique identifier for the tray icon. |
| string | iconPath | The file path to the icon image to display in the system tray. Must refer to a valid .ico image file. |
| string | tooltip | The tooltip text to display when the user hovers over the tray icon. Maximum length: 128 characters. |