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
파일 보기 프로젝트 열기: tvoyle/ObjectListViewRepack

공개 메소드들

메소드 설명
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