C# 클래스 vbAccelerator.Components.Controls.VListBox

A simple implementation of a Virtual ListBox. A virtual ListBox contains no data, instead it just allocates space for a specified number of rows. Whenever a row needs to be shown, the OnDrawItem method is fired which in turn fires the DrawItem event.
상속: System.Windows.Forms.ListBox
파일 보기 프로젝트 열기: Blackfrosch/VAGEDCSuite 1 사용 예제들

Private Properties

프로퍼티 타입 설명
GetScrollInfo int
SendMessage int

공개 메소드들

메소드 설명
DefaultDrawItem ( DrawItemEventArgs e, String text, Brush foreGround ) : void
ItemSelected ( int index ) : bool

Gets the selection state for an item.

ItemSelected ( int index, bool state ) : void

Sets the selection state for an item.

VListBox ( ) : System

Constructs a new instance of this class.

보호된 메소드들

메소드 설명
OnDrawItem ( DrawItemEventArgs e ) : void

Called when an item in the control needs to be drawn, and raises the DrawItem event.

OnHandleDestroyed ( EventArgs e ) : void

Called when the ListBox handle is destroyed.

WndProc ( System &msg ) : void

비공개 메소드들

메소드 설명
GetScrollInfo ( IntPtr hWnd, int n, ScrollInfoStruct &lpScrollInfo ) : int
SendMessage ( IntPtr hWnd, int msg, int wParam, IntPtr lParam ) : int

메소드 상세

DefaultDrawItem() 공개 메소드

public DefaultDrawItem ( DrawItemEventArgs e, String text, Brush foreGround ) : void
e System.Windows.Forms.DrawItemEventArgs
text String
foreGround System.Drawing.Brush
리턴 void

ItemSelected() 공개 메소드

Gets the selection state for an item.
public ItemSelected ( int index ) : bool
index int Index of the item.
리턴 bool

ItemSelected() 공개 메소드

Sets the selection state for an item.
public ItemSelected ( int index, bool state ) : void
index int Index of the item.
state bool New selection state for the item.
리턴 void

OnDrawItem() 보호된 메소드

Called when an item in the control needs to be drawn, and raises the DrawItem event.
protected OnDrawItem ( DrawItemEventArgs e ) : void
e System.Windows.Forms.DrawItemEventArgs Details about the item that is to be drawn.
리턴 void

OnHandleDestroyed() 보호된 메소드

Called when the ListBox handle is destroyed.
protected OnHandleDestroyed ( EventArgs e ) : void
e System.EventArgs Not used
리턴 void

VListBox() 공개 메소드

Constructs a new instance of this class.
public VListBox ( ) : System
리턴 System

WndProc() 보호된 메소드

protected WndProc ( System &msg ) : void
msg System
리턴 void