Class GalleryItemContext
Represents the context of Template
Inheritance
Namespace: Syncfusion.Blazor.Ribbon
Assembly: Syncfusion.Blazor.dll
Syntax
public class GalleryItemContext : Object
Remarks
This context provides item information for custom rendering and logic within the gallery template.
Constructors
GalleryItemContext()
Declaration
public GalleryItemContext()
Properties
Item
Gets the item data associated with the rendered gallery item.
Declaration
public GalleryItem Item { get; set; }
Property Value
Type | Description |
---|---|
GalleryItem | A GalleryItem representing the current gallery item being rendered. |
Remarks
Use this property to access the data of the gallery item during rendering. It supports custom rendering logic by providing the necessary item details to the rendering function or template.
ItemIndex
Gets the index of the currently rendered item.
Declaration
public int ItemIndex { get; set; }
Property Value
Type | Description |
---|---|
System.Int32 | An integer representing the index of the rendered item. |
Remarks
This property helps with positioning and iteration logic by indicating the ordinal position of the gallery item within the collection being rendered. It's useful for accessing sequence-based properties or applying index-specific styles.