# ToggleButtonGroupState(ulong, int)

> Constructs a ToggleButtonGroupState.

## Definition

* **Type:** Constructor
* **Namespace:** [UnityEngine.UIElements](/engine/6000.5/script-reference/unityengine/uielements.md)
* **Assembly:** UnityEngine.UIElementsModule

```csharp
public ToggleButtonGroupState(ulong optionsBitMask, int length)
```

### Parameters

**** (\[ulong]\(https\://learn.microsoft.com/dotnet/api/system.uint64)): A bit value where each bit represents the binary state of the corresponding button.**** (\[int]\(https\://learn.microsoft.com/dotnet/api/system.int32)): The number of toggle button options.

### Remarks

The maximum number of toggle button options allowed is 64. Exceeding this number will throw an ArgumentOutOfRangeException.
