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

Provides methods and properties for using a StyleGalleryContentItem.

Definition

Namespace:Telerik.WinForms.Controls.Spreadsheet.Controls

Assembly:Telerik.WinControls.RadSpreadsheet.dll

Syntax:

C#
public class StyleGalleryContentItem : IStyleGalleryItem, INotifyPropertyChanged

Inheritance: objectStyleGalleryContentItem

Implements: INotifyPropertyChangedIStyleGalleryItem

Constructors

Initializes a new instance of the StyleGalleryContentItem class.

C#
public StyleGalleryContentItem(CellStyle cellStyle)
Parameters:cellStyleCellStyle

The cell style.

Properties

Gets the cell style.

C#
public CellStyle CellStyle { get; }
Property Value:

The cell style.

Gets or sets the image source.

C#
public Image Image { get; set; }
Property Value:

The image source.

Gets a value indicating whether the snapshot is invalidated.

C#
public bool IsSnapshotInvalidated { get; }
Property Value:

Boolean indicating whether the snapshot is invalidated.

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

Invalidates the snapshot.

C#
public void InvalidateSnapshot()

Events

Occurs when a property value changes.

C#
public event PropertyChangedEventHandler PropertyChanged

Implements: INotifyPropertyChanged.PropertyChanged