C# Класс YamuiFramework.Controls.YamuiTabButtons

This class displays items on a list o strings, next to each other each item is clickable and triggers the TabPressed event that provides the clicked index
Наследование: System.Windows.Forms.Button
Показать файл Открыть проект Примеры использования класса

Открытые свойства

Свойство Тип Описание
SpaceBetweenText int

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

Метод Описание
GetWidth ( ) : int

Returns the width that will take the control

UpdateList ( List listOfButtons, int selectedIndex ) : void
YamuiTabButtons ( List listOfButtons, int selectedIndex ) : System

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

Метод Описание
OnEnter ( EventArgs e ) : void
OnGotFocus ( EventArgs e ) : void
OnKeyDown ( KeyEventArgs e ) : void
OnKeyUp ( KeyEventArgs e ) : void
OnLeave ( EventArgs e ) : void
OnLostFocus ( EventArgs e ) : void
OnMouseDown ( MouseEventArgs e ) : void
OnMouseEnter ( EventArgs e ) : void
OnMouseLeave ( EventArgs e ) : void
OnMouseMove ( MouseEventArgs e ) : void
OnMouseUp ( MouseEventArgs e ) : void
OnPaint ( PaintEventArgs e ) : void
OnPaintBackground ( PaintEventArgs e ) : void
OnPreviewKeyDown ( PreviewKeyDownEventArgs e ) : void

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

Метод Описание
GetIndexFromLocation ( Point loc ) : int
GetRect ( int index ) : Rectangle
HandlePressedButton ( ) : void

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

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

Returns the width that will take the control
public GetWidth ( ) : int
Результат int

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

protected OnEnter ( EventArgs e ) : void
e System.EventArgs
Результат void

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

protected OnGotFocus ( EventArgs e ) : void
e System.EventArgs
Результат void

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

protected OnKeyDown ( KeyEventArgs e ) : void
e System.Windows.Forms.KeyEventArgs
Результат void

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

protected OnKeyUp ( KeyEventArgs e ) : void
e System.Windows.Forms.KeyEventArgs
Результат void

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

protected OnLeave ( EventArgs e ) : void
e System.EventArgs
Результат void

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

protected OnLostFocus ( EventArgs e ) : void
e System.EventArgs
Результат void

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

protected OnMouseDown ( MouseEventArgs e ) : void
e MouseEventArgs
Результат void

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

protected OnMouseEnter ( EventArgs e ) : void
e System.EventArgs
Результат void

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

protected OnMouseLeave ( EventArgs e ) : void
e System.EventArgs
Результат void

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

protected OnMouseMove ( MouseEventArgs e ) : void
e MouseEventArgs
Результат void

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

protected OnMouseUp ( MouseEventArgs e ) : void
e MouseEventArgs
Результат void

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

protected OnPaint ( PaintEventArgs e ) : void
e PaintEventArgs
Результат void

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

protected OnPaintBackground ( PaintEventArgs e ) : void
e PaintEventArgs
Результат void

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

protected OnPreviewKeyDown ( PreviewKeyDownEventArgs e ) : void
e System.Windows.Forms.PreviewKeyDownEventArgs
Результат void

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

public UpdateList ( List listOfButtons, int selectedIndex ) : void
listOfButtons List
selectedIndex int
Результат void

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

public YamuiTabButtons ( List listOfButtons, int selectedIndex ) : System
listOfButtons List
selectedIndex int
Результат System

Описание свойств

SpaceBetweenText публичное свойство

Spacing between items
public int SpaceBetweenText
Результат int