C# 클래스 GrayIris.Utilities.UI.Controls.YaTabControl

상속: System.Windows.Forms.Control
파일 보기 프로젝트 열기: realistschuckle/yet-another-tab-control 1 사용 예제들

공개 메소드들

메소드 설명
AddNewTab ( ) : GrayIris.Utilities.UI.Controls.YaTabPage

Adds a "NEW_TAB" at the end of the list of tabs.

GetLeftScrollButtonRect ( ) : Rectangle

Gets the Rectangle that contains the left scroll button.

GetRightScrollButtonRect ( ) : Rectangle

Gets the Rectangle that contains the left scroll button.

GetTabRect ( int index ) : Rectangle

Returns the bounding rectangle for a specified tab in this tab control.

ScrollTabs ( int amount ) : void

Scrolls the tabs by the specified amount.

Positive amounts will scroll the tabs to the left. Negative amounts will scroll the tabs to the right.

YaTabControl ( ) : System

Creates a new instance of the YaTabControl class.

보호된 메소드들

메소드 설명
CreateControlsInstance ( ) : System.Windows.Forms.Control.ControlCollection

Overriden from Control.

Dispose ( bool disposing ) : void

Inherited from Control.

OnActiveColorChanged ( EventArgs ea ) : void

Fires the ActiveColorChanged event.

OnBorderColorChanged ( EventArgs ea ) : void

Fires the BorderColorChanged event.

OnControlAdded ( System.Windows.Forms.ControlEventArgs cea ) : void

Overridden. Inherited from Control.

OnControlRemoved ( System.Windows.Forms.ControlEventArgs cea ) : void

Overridden. Inherited from Control.

OnInactiveColorChanged ( EventArgs ea ) : void

Fires the InactiveColorChanged event.

OnMarginChanged ( EventArgs ea ) : void

Fires the MarginChanged event.

OnMouseClick ( MouseEventArgs e ) : void

Overridden. Inherited from Control.

OnMouseDown ( MouseEventArgs mea ) : void

Overridden. Inherited from Control.

OnMouseLeave ( EventArgs mea ) : void

Overridden. Inherited from Control.

OnMouseMove ( MouseEventArgs mea ) : void

Overridden. Inherited from Control.

OnMouseUp ( MouseEventArgs mea ) : void

Overridden. Inherited from Control.

OnNewTabButtonClicked ( NewTabEventArgs ea ) : void

Fires the NewTabButtonClicked event.

OnPaint ( PaintEventArgs pea ) : void

Inherited from Control.

OnScrollButtonStyleChanged ( EventArgs ea ) : void

Fires the ScrollButtonStyleChanged event.

OnSizeChanged ( EventArgs e ) : void

Inherited from Control.

OnTabChanged ( EventArgs ea ) : void

Fires the TabChanged event.

OnTabChanging ( GrayIris.Utilities.UI.Controls.TabChangingEventArgs tcea ) : void

Fires the TabChanging event.

OnTabClosing ( TabClosingEventArgs e ) : void

Fires the TabClosing event.

OnTabDockChanged ( EventArgs ea ) : void

Fires the TabDockChanged event.

OnTabDrawerChanged ( EventArgs ea ) : void

Fires the TabDrawerChanged event.

OnTabFontChanged ( EventArgs ea ) : void

Fires the TabFontChanged event.

비공개 메소드들

메소드 설명
CalculateLastVisibleTabIndex ( ) : void

Calculates the last visible tab shown on the control.

CalculateRectangles ( ) : void

Calculates the rectangles for the tab area, the client area, the display area, and the transformed display area.

CalculateTabLengths ( ) : void

Calculates and caches the length of each tab given the value of the Control.Text property of each YaTabPage.

CalculateTabSpan ( ) : void

Calculates the span of a tab given the value of the Font property.

ChildTabTextChanged ( object sender, EventArgs ea ) : void

Monitors when child YaTabPages have their YaTabPage.Text property changed.

GetRectangleClose ( Rectangle tabRectangle, int inflateSize ) : RectangleF
InU ( ) : void

Invalidates and updates the YaTabControl.

IsNewTab ( int tabIndex ) : bool

Indicates whether a given tab index represents the "NEW_TAB"

YaTabPage_TextChanged ( object sender, EventArgs e ) : void

Handles when the text changes for a control.

메소드 상세

AddNewTab() 공개 메소드

Adds a "NEW_TAB" at the end of the list of tabs.
public AddNewTab ( ) : GrayIris.Utilities.UI.Controls.YaTabPage
리턴 GrayIris.Utilities.UI.Controls.YaTabPage

CreateControlsInstance() 보호된 메소드

Overriden from Control.
protected CreateControlsInstance ( ) : System.Windows.Forms.Control.ControlCollection
리턴 System.Windows.Forms.Control.ControlCollection

Dispose() 보호된 메소드

Inherited from Control.
protected Dispose ( bool disposing ) : void
disposing bool /// See . ///
리턴 void

GetLeftScrollButtonRect() 공개 메소드

Gets the Rectangle that contains the left scroll button.
public GetLeftScrollButtonRect ( ) : Rectangle
리턴 System.Drawing.Rectangle

GetRightScrollButtonRect() 공개 메소드

Gets the Rectangle that contains the left scroll button.
public GetRightScrollButtonRect ( ) : Rectangle
리턴 System.Drawing.Rectangle

GetTabRect() 공개 메소드

Returns the bounding rectangle for a specified tab in this tab control.
/// The index is less than zero.
-or-
The index is greater than or equal to . ///
public GetTabRect ( int index ) : Rectangle
index int The 0-based index of the tab you want.
리턴 System.Drawing.Rectangle

OnActiveColorChanged() 보호된 메소드

Fires the ActiveColorChanged event.
protected OnActiveColorChanged ( EventArgs ea ) : void
ea System.EventArgs /// Some . ///
리턴 void

OnBorderColorChanged() 보호된 메소드

Fires the BorderColorChanged event.
protected OnBorderColorChanged ( EventArgs ea ) : void
ea System.EventArgs /// Some . ///
리턴 void

OnControlAdded() 보호된 메소드

Overridden. Inherited from Control.
protected OnControlAdded ( System.Windows.Forms.ControlEventArgs cea ) : void
cea System.Windows.Forms.ControlEventArgs /// See . ///
리턴 void

OnControlRemoved() 보호된 메소드

Overridden. Inherited from Control.
protected OnControlRemoved ( System.Windows.Forms.ControlEventArgs cea ) : void
cea System.Windows.Forms.ControlEventArgs /// See . ///
리턴 void

OnInactiveColorChanged() 보호된 메소드

Fires the InactiveColorChanged event.
protected OnInactiveColorChanged ( EventArgs ea ) : void
ea System.EventArgs /// Some . ///
리턴 void

OnMarginChanged() 보호된 메소드

Fires the MarginChanged event.
protected OnMarginChanged ( EventArgs ea ) : void
ea System.EventArgs /// Some . ///
리턴 void

OnMouseClick() 보호된 메소드

Overridden. Inherited from Control.
protected OnMouseClick ( MouseEventArgs e ) : void
e MouseEventArgs
리턴 void

OnMouseDown() 보호된 메소드

Overridden. Inherited from Control.
protected OnMouseDown ( MouseEventArgs mea ) : void
mea MouseEventArgs /// See . ///
리턴 void

OnMouseLeave() 보호된 메소드

Overridden. Inherited from Control.
protected OnMouseLeave ( EventArgs mea ) : void
mea System.EventArgs /// See . ///
리턴 void

OnMouseMove() 보호된 메소드

Overridden. Inherited from Control.
protected OnMouseMove ( MouseEventArgs mea ) : void
mea MouseEventArgs /// See . ///
리턴 void

OnMouseUp() 보호된 메소드

Overridden. Inherited from Control.
protected OnMouseUp ( MouseEventArgs mea ) : void
mea MouseEventArgs /// Some . ///
리턴 void

OnNewTabButtonClicked() 보호된 메소드

Fires the NewTabButtonClicked event.
protected OnNewTabButtonClicked ( NewTabEventArgs ea ) : void
ea NewTabEventArgs /// Some . ///
리턴 void

OnPaint() 보호된 메소드

Inherited from Control.
protected OnPaint ( PaintEventArgs pea ) : void
pea PaintEventArgs /// See . ///
리턴 void

OnScrollButtonStyleChanged() 보호된 메소드

Fires the ScrollButtonStyleChanged event.
protected OnScrollButtonStyleChanged ( EventArgs ea ) : void
ea System.EventArgs /// Some . ///
리턴 void

OnSizeChanged() 보호된 메소드

Inherited from Control.
protected OnSizeChanged ( EventArgs e ) : void
e System.EventArgs /// See . ///
리턴 void

OnTabChanged() 보호된 메소드

Fires the TabChanged event.
protected OnTabChanged ( EventArgs ea ) : void
ea System.EventArgs /// Some for the event. ///
리턴 void

OnTabChanging() 보호된 메소드

Fires the TabChanging event.
protected OnTabChanging ( GrayIris.Utilities.UI.Controls.TabChangingEventArgs tcea ) : void
tcea GrayIris.Utilities.UI.Controls.TabChangingEventArgs /// Some for the event. ///
리턴 void

OnTabClosing() 보호된 메소드

Fires the TabClosing event.
protected OnTabClosing ( TabClosingEventArgs e ) : void
e TabClosingEventArgs /// Some for the event. ///
리턴 void

OnTabDockChanged() 보호된 메소드

Fires the TabDockChanged event.
protected OnTabDockChanged ( EventArgs ea ) : void
ea System.EventArgs /// Some . ///
리턴 void

OnTabDrawerChanged() 보호된 메소드

Fires the TabDrawerChanged event.
protected OnTabDrawerChanged ( EventArgs ea ) : void
ea System.EventArgs /// Some . ///
리턴 void

OnTabFontChanged() 보호된 메소드

Fires the TabFontChanged event.
protected OnTabFontChanged ( EventArgs ea ) : void
ea System.EventArgs /// Some . ///
리턴 void

ScrollTabs() 공개 메소드

Scrolls the tabs by the specified amount.
Positive amounts will scroll the tabs to the left. Negative amounts will scroll the tabs to the right.
public ScrollTabs ( int amount ) : void
amount int /// The number of pixels to scroll the tabs. ///
리턴 void

YaTabControl() 공개 메소드

Creates a new instance of the YaTabControl class.
public YaTabControl ( ) : System
리턴 System