Class
GalleryContentItem<T>

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:

cs-api-definition
public class GalleryContentItem<T> : IGalleryItem where T : NamedObjectBase

Inheritance: objectGalleryContentItem<T>

Implements: IGalleryItem

Constructors

GalleryContentItem(T, GalleryItemCategory)

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

Declaration

cs-api-definition
public GalleryContentItem(T content, GalleryItemCategory category)

Parameters

content

T

The content.

category

GalleryItemCategory

The category.

Properties

Category

Gets the category.

Declaration

cs-api-definition
public GalleryItemCategory Category { get; }

Property Value

GalleryItemCategory

The category of the gallery item as GalleryItemCategory.

Implements IGalleryItem.Category

Content

Gets the content.

Declaration

cs-api-definition
public T Content { get; }

Property Value

T

The content of type T.

Methods

Equals(object)

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

Declaration

cs-api-definition
public override bool Equals(object obj)

Parameters

obj

object

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)

GetHashCode()

Serves as a hash function for a particular type.

Declaration

cs-api-definition
public override int GetHashCode()

Returns

int

A hash code for the current object.

Overrides object.GetHashCode()