windowsforms-devexpress-dot-xtraeditors-dot-buttonpanel-dot-ibuttonproperties-b5d4424a.md
Gets or sets a group index for the current IButton object.
Namespace : DevExpress.XtraEditors.ButtonPanel
Assembly : DevExpress.Utils.v25.2.dll
NuGet Packages : DevExpress.Utils, DevExpress.Wpf.Core
[DXCategory("Appearance")]
int GroupIndex { get; set; }
<DXCategory("Appearance")>
Property GroupIndex As Integer
| Type | Description |
|---|---|
| Int32 |
An Int32 value that is the group index for the current IButton object. The default value is -1.
|
Header Buttons and WindowsUI Custom Buttons, depending on the IButtonProperties.Style property value, can be either regular (push) buttons or check buttons. For all check buttons, the GroupIndex property is available. Check custom header buttons with the default GroupIndex property value of -1 act as simple check buttons. If the GroupIndex property value differs from the default value, a custom button acts as a group radio button. All group radio buttons with the same GroupIndex property value are united in the single group. See the Header Buttons topic for more info.
See Also