C# Class SIL.FieldWorks.Common.UIAdapters.SilButtonItem

Creates a button whose font can specified independent of any other ButtonItems.
Inheritance: DevComponents.DotNetBar.ButtonItem
显示文件 Open project: sillsdev/FieldWorks Class Usage Examples

Public Methods

Method Description
Paint ( DevComponents.DotNetBar.ItemPaintArgs e ) : void

Override the paint to make this item very distict from other menu items.

RecalcSize ( ) : void

When the font for the item is not the default font, then calclate our height based on the height of the font, plus 10% more for some padding.

SilButtonItem ( ) : System

Constructor for SilButtonItem

SilButtonItem ( string name ) : System

Constructor for SilButtonItem

SilButtonItem ( string name, string text ) : System

Constructor for SilButtonItem

Method Details

Paint() public method

Override the paint to make this item very distict from other menu items.
public Paint ( DevComponents.DotNetBar.ItemPaintArgs e ) : void
e DevComponents.DotNetBar.ItemPaintArgs
return void

RecalcSize() public method

When the font for the item is not the default font, then calclate our height based on the height of the font, plus 10% more for some padding.
public RecalcSize ( ) : void
return void

SilButtonItem() public method

Constructor for SilButtonItem
public SilButtonItem ( ) : System
return System

SilButtonItem() public method

Constructor for SilButtonItem
public SilButtonItem ( string name ) : System
name string
return System

SilButtonItem() public method

Constructor for SilButtonItem
public SilButtonItem ( string name, string text ) : System
name string
text string
return System