C# 클래스 Hawkeye.UI.Controls.CustomTabControl

Owner-drawn tab control
상속: System.Windows.Forms.TabControl
파일 보기 프로젝트 열기: odalet/Hawkeye2

보호된 프로퍼티들

프로퍼티 타입 설명
DefaultBorderColor Color
DefaultTextColor Color

Private Properties

프로퍼티 타입 설명
GetTabImage Image
PaintAllTabs void
ShouldPaintTabSeparator bool

공개 메소드들

메소드 설명
CustomTabControl ( ) : System

Initializes a new instance of the CustomTabControl class.

보호된 메소드들

메소드 설명
GetPath ( int index ) : GraphicsPath

Gets a graphics path representing how to draw the tab at the specified index.

In this implementation, tab are drawn as square.

OnPaint ( PaintEventArgs e ) : void

Raises the E:System.Windows.Forms.Control.Paint event.

OnPaintBackground ( PaintEventArgs pevent ) : void

Paints the background of the control.

OnResize ( EventArgs e ) : void

This member overrides M:System.Windows.Forms.Control.OnResize(System.EventArgs).

PaintSelectedTab ( PaintEventArgs e ) : void

Paints the selected tab.

PaintTab ( PaintEventArgs e, int index ) : void

Paints the tab at the specified index.

PaintTabBorder ( Graphics g, int index, GraphicsPath path ) : void

Paints the border of the tab at the specified object.

PaintTabPageBorder ( PaintEventArgs e ) : void

Paints the tab page border.

PaintTabSeparator ( PaintEventArgs e, int index ) : void

Paints the tab separator at the specified index.

PaintTabText ( Graphics g, int index ) : void

Paints the text of the tab at the specified index.

비공개 메소드들

메소드 설명
GetTabImage ( int index ) : Image
PaintAllTabs ( PaintEventArgs e ) : void

Paints all tabs.

ShouldPaintTabSeparator ( int index ) : bool

Get a value indicating if we should paint a tab separator before the tab identified by the index index.

메소드 상세

CustomTabControl() 공개 메소드

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

GetPath() 보호된 메소드

Gets a graphics path representing how to draw the tab at the specified index.
In this implementation, tab are drawn as square.
protected GetPath ( int index ) : GraphicsPath
index int The tab index.
리턴 System.Drawing.Drawing2D.GraphicsPath

OnPaint() 보호된 메소드

Raises the E:System.Windows.Forms.Control.Paint event.
protected OnPaint ( PaintEventArgs e ) : void
e PaintEventArgs A that contains the event data.
리턴 void

OnPaintBackground() 보호된 메소드

Paints the background of the control.
protected OnPaintBackground ( PaintEventArgs pevent ) : void
pevent PaintEventArgs A that contains information about the control to paint.
리턴 void

OnResize() 보호된 메소드

This member overrides M:System.Windows.Forms.Control.OnResize(System.EventArgs).
protected OnResize ( EventArgs e ) : void
e System.EventArgs An that contains the event data.
리턴 void

PaintSelectedTab() 보호된 메소드

Paints the selected tab.
protected PaintSelectedTab ( PaintEventArgs e ) : void
e PaintEventArgs The instance containing the event data.
리턴 void

PaintTab() 보호된 메소드

Paints the tab at the specified index.
protected PaintTab ( PaintEventArgs e, int index ) : void
e PaintEventArgs The instance containing the event data.
index int The tab index.
리턴 void

PaintTabBorder() 보호된 메소드

Paints the border of the tab at the specified object.
protected PaintTabBorder ( Graphics g, int index, GraphicsPath path ) : void
g System.Drawing.Graphics The graphics object on which to paint.
index int The tab index.
path System.Drawing.Drawing2D.GraphicsPath The graphics path representing the tab border.
리턴 void

PaintTabPageBorder() 보호된 메소드

Paints the tab page border.
protected PaintTabPageBorder ( PaintEventArgs e ) : void
e PaintEventArgs The instance containing the event data.
리턴 void

PaintTabSeparator() 보호된 메소드

Paints the tab separator at the specified index.
protected PaintTabSeparator ( PaintEventArgs e, int index ) : void
e PaintEventArgs The instance containing the event data.
index int The index.
리턴 void

PaintTabText() 보호된 메소드

Paints the text of the tab at the specified index.
protected PaintTabText ( Graphics g, int index ) : void
g System.Drawing.Graphics The graphics object on which to paint.
index int The tab index.
리턴 void

프로퍼티 상세

DefaultBorderColor 보호되어 있는 프로퍼티

protected Color DefaultBorderColor
리턴 Color

DefaultTextColor 보호되어 있는 프로퍼티

protected Color DefaultTextColor
리턴 Color