M-Files UI Extensibility Framework
SetIcon Method
ICommands Interface : SetIcon Method
The custom command id.
An enumerated value that specifies the icon. Can be one of the values in DefaultIcon
Description
Sets an icon for a custom command. Icon can be one of the M-Files default icons. Setting the icon works currently only with commands in task pane.
Syntax
Visual Basic
Public Sub SetIcon( _
   ByVal customCommand As Long, _
   ByVal icon As DefaultIcon _
) 
Parameters
customCommand
The custom command id.
icon
ValueDescription
DefaultIcon_Assignment 
DefaultIcon_ChangeState 
DefaultIcon_CheckIn 
DefaultIcon_CheckOut 
DefaultIcon_Collection 
DefaultIcon_File 
DefaultIcon_GoOffline 
DefaultIcon_GoOnline 
DefaultIcon_History 
DefaultIcon_LogOut 
DefaultIcon_MakeCopy 
DefaultIcon_MarkComplete 
DefaultIcon_MFD 
DefaultIcon_PrivateView 
DefaultIcon_Properties 
DefaultIcon_PropertyFolder 
DefaultIcon_RelationShips 
DefaultIcon_Root 
DefaultIcon_SelectedState 
DefaultIcon_TraditionalFolder 
DefaultIcon_UndoCheckOut 
DefaultIcon_View 
DefaultIcon_Workflow 
An enumerated value that specifies the icon. Can be one of the values in DefaultIcon
Remarks
Supported in M-Files 9.0.3372.6 and newer.
See Also

ICommands Interface  | ICommands Members