menu

Blazor

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

    Show / Hide Table of Contents

    Class GalleryItem

    Represents an item in a gallery within the Ribbon.

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

    Constructors

    GalleryItem()

    Declaration
    public GalleryItem()

    Properties

    Content

    Gets or sets the content for the gallery item.

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

    A string value representing the content of the gallery item. The default value is String.Empty.

    Remarks

    This property defines the main content or label displayed for the gallery item.

    CssClass

    Gets or sets the CSS class to customize the gallery items.

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

    A string value representing the CSS class applied to the gallery items. The default value is String.Empty.

    Remarks

    This property allows you to apply custom CSS styles to the gallery items, enabling further customization of their appearance.

    Disabled

    Gets or sets whether the item is disabled or not.

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

    true if the gallery item is disabled; otherwise, false. The default value is false.

    Remarks

    This property determines whether the gallery item is interactive or not. A disabled item will not respond to user interactions.

    HtmlAttributes

    Gets or sets the HTML attributes to be applied to the gallery item.

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

    A dictionary of HTML attributes to apply to the gallery item. The default value is an empty dictionary.

    Remarks

    Use this property to specify additional HTML attributes for the gallery item, such as data attributes or inline styles.

    IconCss

    Gets or sets the CSS class for the icons or images for the gallery item.

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

    A string value specifying the CSS class for the icons or images. The default value is String.Empty.

    Remarks

    This property allows you to apply a CSS class to icons or images associated with the gallery item, enabling custom styling.

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