menu

Blazor

  • Code Examples
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Class GroupButtonItem - Blazor API Reference | Syncfusion

    Show / Hide Table of Contents

    Class GroupButtonItem

    Represents an item within a group button in the Ribbon control.

    Inheritance
    System.Object
    GroupButtonItem
    Namespace: Syncfusion.Blazor.Ribbon
    Assembly: Syncfusion.Blazor.dll
    Syntax
    public class GroupButtonItem : Object

    Constructors

    GroupButtonItem()

    Declaration
    public GroupButtonItem()

    Properties

    Content

    Gets or sets the content of the button.

    Declaration
    public string Content { get; set; }
    Property Value
    Type Description
    System.String

    Accepts a string value representing the button's content. The default value is String.Empty.

    Remarks

    This property allows you to define the text content that appears on the button.

    HtmlAttributes

    Gets or sets additional HTML attributes to be applied to the button.

    Declaration
    public Dictionary<string, object> HtmlAttributes { get; set; }
    Property Value
    Type
    System.Collections.Generic.Dictionary<System.String, System.Object>

    IconCss

    Gets or sets one or more CSS classes for the icons to be shown in the group button.

    Declaration
    public string IconCss { get; set; }
    Property Value
    Type Description
    System.String

    A string representing one or more CSS classes that define the appearance of the icons within the button. The default value is String.Empty, meaning no CSS classes are applied by default.

    Remarks

    This property allows you to specify CSS classes that will be applied to the icons displayed within the group button. By assigning CSS classes, you can customize the icon's styling, such as its size, color, or any additional visual effects. You can provide multiple CSS classes separated by spaces to apply various styles.

    KeyTip

    Gets or sets the key tip text for the group button item in the SfRibbon component.

    Declaration
    public string KeyTip { get; set; }
    Property Value
    Type Description
    System.String

    A string representing the key tip text for the group button item. Defaults to an empty string.

    Remarks

    This property allows you to specify a keyboard shortcut (key tip) for a specific group button item within the SfRibbon component. When key tips are enabled, users can press the assigned key combination to quickly access the corresponding group button item.

    RibbonTooltipSettings

    Gets or sets the tooltip settings for the group button ribbon items.

    Declaration
    public RibbonTooltipSettings RibbonTooltipSettings { get; set; }
    Property Value
    Type Description
    RibbonTooltipSettings

    An instance of RibbonTooltipSettings specifying the tooltip settings. The default value is null.

    Remarks

    This property allows you to configure the tooltip settings for the group button items, including text, positioning, and appearance.

    Selected

    Gets or sets whether the button is selected or not.

    Declaration
    public bool Selected { get; set; }
    Property Value
    Type Description
    System.Boolean

    true if the button is selected; otherwise, false. The default value is false.

    Remarks

    This property indicates whether the button is in a selected state, which can be used to apply specific styles or behaviors.

    Back to top Generated by DocFX
    Copyright © 2001 - 2025 Syncfusion Inc. All Rights Reserved