C# Класс BrightIdeasSoftware.DateTimeClusteringStrategy

This class implements a strategy where the model objects are clustered according to some portion of the datetime value in the configured column.
To create a strategy that grouped people who were born in the same month, you would create a strategy that extracted just the month, and formatted it to show just the month's name. Like this:
Наследование: BrightIdeasSoftware.ClusteringStrategy
Показать файл Открыть проект

Открытые методы

Метод Описание
DateTimeClusteringStrategy ( ) : System

Create a strategy that clusters by month/year

DateTimeClusteringStrategy ( DateTimePortion portions, string format ) : System

Create a strategy that clusters around the given parts

GetClusterDisplayLabel ( ICluster cluster ) : string

Gets the display label that the given cluster should use

GetClusterKey ( object model ) : object

Get the cluster key by which the given model will be partitioned by this strategy

Защищенные методы

Метод Описание
DateToString ( DateTime dateTime ) : string

Convert the given date into a user presentable string

Описание методов

DateTimeClusteringStrategy() публичный Метод

Create a strategy that clusters by month/year
public DateTimeClusteringStrategy ( ) : System
Результат System

DateTimeClusteringStrategy() публичный Метод

Create a strategy that clusters around the given parts
public DateTimeClusteringStrategy ( DateTimePortion portions, string format ) : System
portions DateTimePortion
format string
Результат System

DateToString() защищенный Метод

Convert the given date into a user presentable string
protected DateToString ( DateTime dateTime ) : string
dateTime DateTime
Результат string

GetClusterDisplayLabel() публичный Метод

Gets the display label that the given cluster should use
public GetClusterDisplayLabel ( ICluster cluster ) : string
cluster ICluster
Результат string

GetClusterKey() публичный Метод

Get the cluster key by which the given model will be partitioned by this strategy
public GetClusterKey ( object model ) : object
model object
Результат object