M-Files UI Extensibility Framework
SetIconFromPath Method
ICommands Interface : SetIconFromPath Method
The custom command id.
Relative path to the icon file. The file must reside under the application installation folder.
Description
Sets an icon for a custom command. Setting the icon works currently only with commands in task pane.
Syntax
Visual Basic
Public Sub SetIconFromPath( _
   ByVal customCommand As Long, _
   ByVal iconPath As String _
) 
Parameters
customCommand
The custom command id.
iconPath
Relative path to the icon file. The file must reside under the application installation folder.
Remarks

The file should be in ICO (.ico) file format. Normally the 16x16 icon is used. If the desktop is DPI setting is set to 150 % or more, a 24x24 icon (if available) is used.

Supported in M-Files 9.0.3372.6 and newer.

See Also

ICommands Interface  | ICommands Members