# SetGroupLabel Method

## Overloads

| [SetGroupLabel(String, String, String)](https://help.qlik.com/en-US/sense-developer/November2025/Subsystems/NetSDKAPIref/Content/Qlik.Engine.IGenericObject.SetGroupLabel.htm#Qlik_Engine_IGenericObject_SetGroupLabel_System_String_System_String_System_String_) |  | You can use the SetGroupLabel method with any object that contains an object grouping definition.<br><br>This method allows you to change the label of an existing group of objects directly. |
| --- | --- | --- |

[](https://help.qlik.com/en-US/sense-developer/Subsystems/NetSDKAPIref/Content/Qlik.Engine.IGenericObject.SetGroupLabel.htm) [](https://help.qlik.com/en-US/sense-developer/Subsystems/NetSDKAPIref/Content/Qlik.Engine.IGenericObject.SetGroupLabel.htm)

## SetGroupLabel(String, String, String)

You can use the SetGroupLabel method with any object that contains an object grouping definition.

This method allows you to change the label of an existing group of objects directly.

### Declaration

```

          void SetGroupLabel([QixName("qPath")] string path, [QixName("qNewLabel")] string newLabel, [QixName("qTargetGroupId")] string targetGroupId = null)
    
  
```

### Parameters

| Type | Name | Description |
| --- | --- | --- |
| System.String | path | Path to the definition of the object to be selected.<br>For example `/qNxGroupDef` . |
| System.String | newLabel | New label for the group.<br>A label starting with an '=' will be evaluated as an expression. |
| System.String | targetGroupId | Id of the group whose label will be set (if not the called object). |