C# Класс SIL.FieldWorks.Common.Controls.ExplorerBarItem

Encapsulates a single item within a SimpleExplorerBar control.
Наследование: System.Windows.Forms.Panel
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
ExplorerBarItem ( string text, Control hostedControl ) : System

Construct an SimpleExplorerBar

SetHostedControlHeight ( int height ) : void

m_button_Click ( object sender, EventArgs e ) : void

Toggle item's expanded state.

m_button_MouseEnter ( object sender, EventArgs e ) : void

Redraw button in hot state when mouse moves over it.

m_button_MouseLeave ( object sender, EventArgs e ) : void

Redraw button in normal state when mouse moves leaves it.

m_button_Paint ( object sender, PaintEventArgs e ) : void

We don't want a typical looking button. Therefore, draw it ourselves.

Защищенные методы

Метод Описание
Dispose ( bool disposing ) : void

Приватные методы

Метод Описание
DrawButtonBackground ( Graphics g ) : void

Draws the background of the button.

DrawExpandCollapseGlyph ( Graphics g ) : void

Draws the expand or collapse glyph. The glyph drawn depends on the visible state of the hosted control.

Описание методов

Dispose() защищенный Метод

protected Dispose ( bool disposing ) : void
disposing bool
Результат void

ExplorerBarItem() публичный Метод

Construct an SimpleExplorerBar
public ExplorerBarItem ( string text, Control hostedControl ) : System
text string
hostedControl System.Windows.Forms.Control
Результат System

SetHostedControlHeight() публичный Метод

public SetHostedControlHeight ( int height ) : void
height int
Результат void

m_button_Click() публичный Метод

Toggle item's expanded state.
public m_button_Click ( object sender, EventArgs e ) : void
sender object
e System.EventArgs
Результат void

m_button_MouseEnter() публичный Метод

Redraw button in hot state when mouse moves over it.
public m_button_MouseEnter ( object sender, EventArgs e ) : void
sender object
e System.EventArgs
Результат void

m_button_MouseLeave() публичный Метод

Redraw button in normal state when mouse moves leaves it.
public m_button_MouseLeave ( object sender, EventArgs e ) : void
sender object
e System.EventArgs
Результат void

m_button_Paint() публичный Метод

We don't want a typical looking button. Therefore, draw it ourselves.
public m_button_Paint ( object sender, PaintEventArgs e ) : void
sender object
e PaintEventArgs
Результат void