Class GalleryContentItem<T>
Provides methods and properties for using GalleryContentItem with some content of type T.
Inheritance
Namespace: Telerik.Windows.Controls.Spreadsheet.Controls
Assembly: Telerik.Windows.Controls.Spreadsheet.dll
Syntax
public class GalleryContentItem<T> : Object, IGalleryItem where T : NamedObjectBase
Type Parameters
T
The type T of the content, which must be inheritor of NameObjectBase class. |
Constructors
GalleryContentItem(T, GalleryItemCategory)
Initializes a new instance of the GalleryContentItem<T> class.
Declaration
public GalleryContentItem(T content, GalleryItemCategory category)
Parameters
T
content
The content. |
GalleryItemCategory
category
The category. |
Properties
Category
Gets the category.
Declaration
public GalleryItemCategory Category { get; }
Property Value
GalleryItemCategory
The category of the gallery item as GalleryItemCategory. |
Implements
Content
Gets the content.
Declaration
public T Content { get; }
Property Value
T
The content of type T. |
Methods
Equals(Object)
Determines whether the specified System.Object is equal to the current System.Object.
Declaration
public override bool Equals(object obj)
Parameters
System.Object
obj
The System.Object to compare with the current System.Object. |
Returns
System.Boolean
true if the specified System.Object is equal to the current System.Object; otherwise, false. |
GetHashCode()
Serves as a hash function for a particular type.
Declaration
public override int GetHashCode()
Returns
System.Int32
A hash code for the current System.Object. |