New to Telerik UI for WPFStart a free 30-day trial

Provides methods and properties for using GalleryContentItem with some content of type T.

Definition

Namespace:Telerik.Windows.Controls.Spreadsheet.Controls

Assembly:Telerik.Windows.Controls.Spreadsheet.dll

Type Parameters:

T

The type T of the content, which must be inheritor of NameObjectBase class.

Syntax:

C#
public class GalleryContentItem<T> : IGalleryItem where T : NamedObjectBase

Inheritance: objectGalleryContentItem<T>

Implements: IGalleryItem

Constructors

Initializes a new instance of the GalleryContentItem<T> class.

C#
public GalleryContentItem(T content, GalleryItemCategory category)
Parameters:contentT

The content.

categoryGalleryItemCategory

The category.

Properties

Gets the category.

C#
public GalleryItemCategory Category { get; }
Property Value:

The category of the gallery item as GalleryItemCategory.

Implements: IGalleryItem.Category

Gets the content.

C#
public T Content { get; }
Property Value:

The content of type T.

Methods

Determines whether the specified object is equal to the current object.

C#
public override bool Equals(object obj)
Parameters:objobject

The object to compare with the current object.

Returns:

bool

true if the specified object is equal to the current object; otherwise, false.

Overrides: object.Equals(object)

Serves as a hash function for a particular type.

C#
public override int GetHashCode()
Returns:

int

A hash code for the current object.

Overrides: object.GetHashCode()