Show / Hide Table of Contents

Method SetIcon

| Edit this page View Source

SetIcon(nint, IconId)

Sets the icon for the window, using the specified icon ID.

Declaration
public static void SetIcon(nint hwnd, IconId iconId)
Parameters
Type Name Description
nint hwnd

Window handle

IconId iconId

The ID of the icon.

| Edit this page View Source

SetIcon(nint, string)

Sets the icon for the window, using the specified icon path.

Declaration
public static void SetIcon(nint hwnd, string iconPath)
Parameters
Type Name Description
nint hwnd

Window handle

string iconPath

The path of the icon.

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