Show / Hide Table of Contents

Constructor TrayIcon

| Edit this page View Source

TrayIcon(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.

| Edit this page View Source

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.

  • Edit this page
  • View Source
In this article
Back to top Generated by DocFX