API Documentation > CorelDRAW > 2025-v26 > Layer > IVGLayer
Layer.CustomCommand method
Executes a layer-specific command provided by a component
Syntax:
Function CustomCommand(ByVal ComponentID As String, ByVal CommandID As String, ByRef ParamArray Parameters() As Variant) As Variant
Parameters:
Name Type Description
ComponentID
String
CommandID
String
Parameters
Variant
Remarks:
The CustomCommand method executes a layer-specific command provided by a component. For example, you can use the CustomCommand method to execute table commands by using the Table... classes.