New to Telerik UI for WinForms? Start a free 30-day trial

A base class for the definitions based on which a RadHeatMap is constructed.

Definition

Namespace:Telerik.WinControls.UI.HeatMap

Assembly:Telerik.WinControls.UI.dll

Syntax:

C#
public abstract class HeatMapDefinition : Component, IComponent, IDisposable, IDataItemSource

Inheritance: objectMarshalByRefObjectComponentHeatMapDefinition

Derived Classes: CategoricalDefinitionMemberDefinitionBase

Implements: IComponentIDataItemSourceIDisposable

Constructors

Initializes a new instance of the HeatMapDefinition class.

C#
protected HeatMapDefinition()

Properties

Gets the columns count.

C#
public int ColumnsCount { get; }

Gets or sets the data source.

C#
[Browsable(true)]
public object DataSource { get; set; }

Gets the DataView collection.

C#
[Browsable(false)]
public RadCollectionView<HeatMapDataItem> DataView { get; }

Gets a collection of HeatMapDataItem objects which represent the items in RadHeatMap.

C#
[Browsable(false)]
public HeatMapDataItemCollection Items { get; protected set; }

Gets the source of the items.

C#
[Browsable(false)]
public RadListSource<HeatMapDataItem> ListSource { get; }

Gets the rows count.

C#
public int RowsCount { get; }

Gets the collection source used internally by the heat map definition.

C#
protected abstract IHeatMapSource Source { get; }

Methods

Creates the binding context.

C#
protected virtual BindingContext CreateBindingContext()
Returns:

BindingContext

Creates the item instance used by NewItem() before the ItemCreating event.

C#
protected abstract HeatMapDataItem CreateDataItem()
Returns:

HeatMapDataItem

A new data item compatible with this definition.

Creates the list source.

C#
protected virtual RadListSource<HeatMapDataItem> CreateListSource()
Returns:

RadListSource<HeatMapDataItem>

Detaches from and disposes the list source, then clears the associated heat map element.

C#
protected override void Dispose(bool disposing)
Parameters:disposingbool

Whether disposal is occurring deterministically.

Overrides: Component.Dispose(bool)

Gets the color value for the row and column coordinates carried by a cell index.

C#
public int GetColor(CellIndex cellIndex)
Parameters:cellIndexCellIndex

The cell whose color is requested.

Returns:

int

The color value produced by GetColor(int, int) for the cell coordinates.

Gets the color of the cell.

C#
public abstract int GetColor(int rowIndex, int columnIndex)
Parameters:rowIndexint

The row index.

columnIndexint

The column index.

Returns:

int

The color of the cell.

Gets the header of the corresponding column.

C#
public abstract object GetColumnHeader(int index)
Parameters:indexint

The column index.

Returns:

object

The header of the corresponding column.

Gets the item at a cell index when it identifies a data cell.

C#
public HeatMapDataItem GetDataItem(CellIndex cellIndex)
Parameters:cellIndexCellIndex

The cell whose data item is requested.

Returns:

HeatMapDataItem

The data item for a data cell, or null for a header or other non-data cell.

Gets the data item at the specified row and column.

C#
public HeatMapDataItem GetDataItem(int rowIndex, int columnIndex)
Parameters:rowIndexint

The row coordinate.

columnIndexint

The column coordinate.

Returns:

HeatMapDataItem

The item returned by the definition's heat map source.

Gets the foreground color based on the darkness of the background.

C#
public virtual Color GetForeColor(Color backColor)
Parameters:backColorColor

The background color.

Returns:

Color

If the background is dark returns White foreground color, othewise returns Black.

Gets the header of the corresponding row.

C#
public abstract object GetRowHeader(int index)
Parameters:indexint

The row index.

Returns:

object

The header of the corresponding row.

Gets the source value at the row and column coordinates carried by a cell index.

C#
public double GetValue(CellIndex cellIndex)
Parameters:cellIndexCellIndex

The cell whose source value is requested.

Returns:

double

The numeric value returned by the definition's heat map source.

Gets the numeric source value at the specified row and column.

C#
public double GetValue(int rowIndex, int columnIndex)
Parameters:rowIndexint

The row coordinate.

columnIndexint

The column coordinate.

Returns:

double

The numeric value returned by the definition's heat map source.

Reinitializes the heat map source from the current items by invoking OnItemsChanged().

C#
public void InitializeHeatMap()

Rebuilds the heat map source after the Items collection is replaced and refreshes owner state.

C#
protected void ItemsPropertyChanged()

Creates an owned data item and raises ItemCreating so handlers can replace it.

C#
public IDataItem NewItem()
Returns:

IDataItem

The item supplied by the ItemCreating event.

Implements: IDataItemSource.NewItem()

Fires the ItemCreating event.

C#
protected virtual void OnDataItemCreating(HeatMapItemCreatingEventArgs args)
Parameters:argsHeatMapItemCreatingEventArgs

The event arguments.

Fires the ItemDataBound event.

C#
protected virtual void OnItemDataBound(HeatMapItemEventArgs args)
Parameters:argsHeatMapItemEventArgs

The event arguments.

This method is called when the Items changes.

C#
protected abstract void OnItemsChanged()

Events

Occurs when a HeatMapDataItem needs to be created.

C#
public event HeatMapItemCreatingEventHandler ItemCreating

Occurs when a data-bound item is being attached to a HeatMapDataItem.

C#
public event HeatMapItemEventHandler ItemDataBound