Class
GalleryContentItem<T>

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

Definition

Namespace:Telerik.Windows.Controls.RichTextBoxUI.RibbonControls.Galleries

Assembly:Telerik.Windows.Controls.RichTextBox.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

Inheritance: objectGalleryContentItem<T>

Implements: IGalleryItem

Constructors

GalleryContentItem(T, string)

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

Declaration

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

Parameters

content

T

The content.

category

string

The category.

Properties

Category

Gets the category.

Declaration

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

Property Value

string

The category of the gallery item.

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()