C# Класс Hawkeye.UI.Controls.CustomTabControl

Owner-drawn tab control
Наследование: System.Windows.Forms.TabControl
Показать файл Открыть проект

Защищенные свойства (Protected)

Свойство Тип Описание
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