C# 클래스 Smrf.AppLib.ListViewPlus

Represents a ListView with additional features.
This ListView-derived object supports sorting by a column that contains data of an arbitrary type. To enable sorting, populate the ListView.Columns collection, then call the EnableSorting method. You can then call the Sort method to sort by a specified column. Sorting also occurs automatically when the user clicks a column header.

By default, right-clicking an item in the ListView shows a context menu with a set of standard menu items supported by this base class. If the derived class needs a custom context menu, it should set UseStandardContextMenu to false and override OnMouseUp(). The derived OnMouseUp() should create and show a custom context menu, then call the base-class method. If the custom context menu should contain the standard menu items in addition to the custom items, should be called to add those items to the menu.

Leave the ListView.Sorting property set to its default value of SortOrder.None.

상속: System.Windows.Forms.ListView, IComparer
파일 보기 프로젝트 열기: 2014-sed-team3/term-project

공개 프로퍼티들

프로퍼티 타입 설명
NoColumn System.Int32

보호된 프로퍼티들

프로퍼티 타입 설명
m_aeColumnTypes ColumnType[]
m_bSortAscending System.Boolean
m_bUseStandardContextMenu System.Boolean
m_iColumnToCopy System.Int32
m_iSortColumn System.Int32
m_oRightClickedItem System.Windows.Forms.ListViewItem

Private Properties

프로퍼티 타입 설명
AssertValid void

공개 메소드들

메소드 설명
AddStandardContextMenuItems ( ContextMenu oContextMenu, System.Boolean bAddSeparator ) : void
BeginUpdate ( ) : void
Compare ( Object oObject1, Object oObject2 ) : Int32
DeselectAllItems ( ) : void
EnableSorting ( ) : void
EndUpdate ( ) : void
GetItemByTag ( Int32 iTag ) : System.Windows.Forms.ListViewItem
GetItemByTag ( Object oTag ) : System.Windows.Forms.ListViewItem
GetRightClickedItem ( MouseEventArgs oMouseEventArgs ) : System.Windows.Forms.ListViewItem
ListViewPlus ( ) : System

Initializes a new instance of the ListViewPlus class.

Sort ( Int32 iColumn, System.Boolean bSortAscending ) : void

보호된 메소드들

메소드 설명
ColumnToColumnType ( Int32 iColumn ) : ColumnType
CopyAll_Click ( object sender, System e ) : void
CopyColumn_Click ( object sender, System e ) : void
CopyRow_Click ( object sender, System e ) : void
ItemToClipboardString ( System.Windows.Forms.ListViewItem oListViewItem ) : String
ItemToClipboardString ( System.Windows.Forms.ListViewItem oListViewItem, StringBuilder oStringBuilder ) : void
OnColumnClick ( object sender, System.Windows.Forms.ColumnClickEventArgs e ) : void
OnMouseUp ( MouseEventArgs e ) : void
TypeToColumnType ( Type oType ) : ColumnType

비공개 메소드들

메소드 설명
AssertValid ( ) : void

메소드 상세

AddStandardContextMenuItems() 공개 메소드

public AddStandardContextMenuItems ( ContextMenu oContextMenu, System.Boolean bAddSeparator ) : void
oContextMenu System.Windows.Forms.ContextMenu
bAddSeparator System.Boolean
리턴 void

BeginUpdate() 공개 메소드

public BeginUpdate ( ) : void
리턴 void

ColumnToColumnType() 보호된 메소드

protected ColumnToColumnType ( Int32 iColumn ) : ColumnType
iColumn System.Int32
리턴 ColumnType

Compare() 공개 메소드

public Compare ( Object oObject1, Object oObject2 ) : Int32
oObject1 Object
oObject2 Object
리턴 System.Int32

CopyAll_Click() 보호된 메소드

protected CopyAll_Click ( object sender, System e ) : void
sender object
e System
리턴 void

CopyColumn_Click() 보호된 메소드

protected CopyColumn_Click ( object sender, System e ) : void
sender object
e System
리턴 void

CopyRow_Click() 보호된 메소드

protected CopyRow_Click ( object sender, System e ) : void
sender object
e System
리턴 void

DeselectAllItems() 공개 메소드

public DeselectAllItems ( ) : void
리턴 void

EnableSorting() 공개 메소드

public EnableSorting ( ) : void
리턴 void

EndUpdate() 공개 메소드

public EndUpdate ( ) : void
리턴 void

GetItemByTag() 공개 메소드

public GetItemByTag ( Int32 iTag ) : System.Windows.Forms.ListViewItem
iTag System.Int32
리턴 System.Windows.Forms.ListViewItem

GetItemByTag() 공개 메소드

public GetItemByTag ( Object oTag ) : System.Windows.Forms.ListViewItem
oTag Object
리턴 System.Windows.Forms.ListViewItem

GetRightClickedItem() 공개 메소드

public GetRightClickedItem ( MouseEventArgs oMouseEventArgs ) : System.Windows.Forms.ListViewItem
oMouseEventArgs System.Windows.Forms.MouseEventArgs
리턴 System.Windows.Forms.ListViewItem

ItemToClipboardString() 보호된 메소드

protected ItemToClipboardString ( System.Windows.Forms.ListViewItem oListViewItem ) : String
oListViewItem System.Windows.Forms.ListViewItem
리턴 String

ItemToClipboardString() 보호된 메소드

protected ItemToClipboardString ( System.Windows.Forms.ListViewItem oListViewItem, StringBuilder oStringBuilder ) : void
oListViewItem System.Windows.Forms.ListViewItem
oStringBuilder StringBuilder
리턴 void

ListViewPlus() 공개 메소드

Initializes a new instance of the ListViewPlus class.
public ListViewPlus ( ) : System
리턴 System

OnColumnClick() 보호된 메소드

protected OnColumnClick ( object sender, System.Windows.Forms.ColumnClickEventArgs e ) : void
sender object
e System.Windows.Forms.ColumnClickEventArgs
리턴 void

OnMouseUp() 보호된 메소드

protected OnMouseUp ( MouseEventArgs e ) : void
e System.Windows.Forms.MouseEventArgs
리턴 void

Sort() 공개 메소드

public Sort ( Int32 iColumn, System.Boolean bSortAscending ) : void
iColumn System.Int32
bSortAscending System.Boolean
리턴 void

TypeToColumnType() 보호된 메소드

protected TypeToColumnType ( Type oType ) : ColumnType
oType System.Type
리턴 ColumnType

프로퍼티 상세

NoColumn 공개적으로 정적으로 프로퍼티

public static Int32,System NoColumn
리턴 System.Int32

m_aeColumnTypes 보호되어 있는 프로퍼티

protected ColumnType[] m_aeColumnTypes
리턴 ColumnType[]

m_bSortAscending 보호되어 있는 프로퍼티

protected Boolean,System m_bSortAscending
리턴 System.Boolean

m_bUseStandardContextMenu 보호되어 있는 프로퍼티

protected Boolean,System m_bUseStandardContextMenu
리턴 System.Boolean

m_iColumnToCopy 보호되어 있는 프로퍼티

protected Int32,System m_iColumnToCopy
리턴 System.Int32

m_iSortColumn 보호되어 있는 프로퍼티

protected Int32,System m_iSortColumn
리턴 System.Int32

m_oRightClickedItem 보호되어 있는 프로퍼티

protected ListViewItem,System.Windows.Forms m_oRightClickedItem
리턴 System.Windows.Forms.ListViewItem