Skip to main content

SetIcon

Description

Sets the icon for a custom command.

Supported in M-Files Client version 25.10 and later.

Syntax

// shellFrame points here into the IShellFrame interface
const result = await shellFrame.Commands.SetIcon(
customCommand,
iconInformation,
);

Parameters

NameOptionalityTypeDescription
customCommandRequirednumberThe custom command id.
iconInformationRequiredIIconInformationThe icon information.

Return type

TypeDescription
Promise < void >

Exceptions

ArgumentError - When customCommand or iconInformation is null or undefined.

NotFoundError - When the command is not found or access is denied.