C# 클래스 Nexus.UI.Controls.PanelToolStripItem

The object that can be added to PanelToolStrips.
This class is a wrapper for the actual controls that get added to the PanelToolStrip. The purpose of this wrapper is to provide a single event that gets raised in a consistent manner to which commands can be attached. This class also serves to track various metadata about the controls.
파일 보기 프로젝트 열기: NexusMods/NexusModManager-4.5 1 사용 예제들

공개 메소드들

메소드 설명
PanelToolStripItem ( Control p_ctlButton, string p_strEvent, Int32 p_intIndex, ToolStripItemDisplayStyle p_tdsDisplayStyle ) : System

A simple constructor.

This constructor wires the appropriate event p_ctlButton to the Selected event.

SetSelected ( ) : void

Sets the item as selected.

SetUnselected ( ) : void

Sets the item as not selected.

보호된 메소드들

메소드 설명
OnSelected ( object sender, EventArgs e ) : void

Raises the Selected event.

메소드 상세

OnSelected() 보호된 메소드

Raises the Selected event.
protected OnSelected ( object sender, EventArgs e ) : void
sender object The object that raised the event.
e System.EventArgs An desribing the event arguments.
리턴 void

PanelToolStripItem() 공개 메소드

A simple constructor.
This constructor wires the appropriate event p_ctlButton to the Selected event.
public PanelToolStripItem ( Control p_ctlButton, string p_strEvent, Int32 p_intIndex, ToolStripItemDisplayStyle p_tdsDisplayStyle ) : System
p_ctlButton System.Windows.Forms.Control The actual control that is to be added to the .
p_strEvent string The name of the event on the button control to which to bind the event.
p_intIndex System.Int32 The index of this item in the panel.
p_tdsDisplayStyle ToolStripItemDisplayStyle The indicating how text and /// images are displayed on this item.
리턴 System

SetSelected() 공개 메소드

Sets the item as selected.
public SetSelected ( ) : void
리턴 void

SetUnselected() 공개 메소드

Sets the item as not selected.
public SetUnselected ( ) : void
리턴 void