C# 클래스 Xnlab.SQLMon.Controls.OutlookGrid.OutlookGridAlphabeticGroup

this group simple example of an implementation which groups the items into Alphabetic categories based only on the first letter of each item for this we need to override the Value property (used for comparison) and the CompareTo function. Also the Clone method must be overriden, so this Group object can create clones of itself. Cloning of the group is used by the OutlookGrid
상속: OutlookgGridDefaultGroup
파일 보기 프로젝트 열기: unruledboy/SQLMonitor 1 사용 예제들

공개 메소드들

메소드 설명
Clone ( ) : object

each group class must implement the clone function

CompareTo ( object obj ) : int

overide the CompareTo, so only the first character is compared, instead of the whole string this will result in classifying each item into a letter of the Alphabet. for instance, this is usefull when grouping names, they will be categorized under the letters A, B, C etc..

OutlookGridAlphabeticGroup ( ) : System

메소드 상세

Clone() 공개 메소드

each group class must implement the clone function
public Clone ( ) : object
리턴 object

CompareTo() 공개 메소드

overide the CompareTo, so only the first character is compared, instead of the whole string this will result in classifying each item into a letter of the Alphabet. for instance, this is usefull when grouping names, they will be categorized under the letters A, B, C etc..
public CompareTo ( object obj ) : int
obj object
리턴 int

OutlookGridAlphabeticGroup() 공개 메소드

public OutlookGridAlphabeticGroup ( ) : System
리턴 System