C# Class FarsiLibrary.Win.FATabStrip

Inheritance: FarsiLibrary.Win.BaseClasses.BaseStyledPanel, ISupportInitialize, IDisposable
Exibir arquivo Open project: DanWBR/dwsim3 Class Usage Examples

Public Properties

Property Type Description
menu System.Windows.Forms.ContextMenuStrip

Private Properties

Property Type Description
AllowDraw bool
OnCalcTabPage void
OnCollectionChanged void
OnDrawTabPage void
OnMenuItemClicked void
OnMenuVisibleChanged void
SelectItem void
SetDefaultSelected void
UnDrawAll void
UnSelectItem void
UpdateLayout void

Public Methods

Method Description
AddTab ( FATabStripItem tabItem ) : void

Add a FATabStripItem to this control without selecting it.

AddTab ( FATabStripItem tabItem, bool autoSelect ) : void

Add a FATabStripItem to this control. User can make the currently selected item or not.

BeginInit ( ) : void
EndInit ( ) : void
FATabStrip ( ) : System
GetTabItemByPoint ( Point pt ) : FATabStripItem

Get a FATabStripItem at provided point. If no item was found, returns null value.

HitTest ( Point pt ) : HitTestResult

Returns hit test results

RemoveTab ( FATabStripItem tabItem ) : void

Remove a FATabStripItem from this control.

ResetFont ( ) : void
ShouldSerializeFont ( ) : bool
ShouldSerializeItems ( ) : bool
ShouldSerializeSelectedItem ( ) : bool
ShowMenu ( ) : void

Display items menu

Protected Methods

Method Description
Dispose ( bool disposing ) : void

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.

OnMenuItemsLoad ( EventArgs e ) : void

Loads menu items based on FATabStripItems currently added to this control.

OnMenuItemsLoaded ( EventArgs e ) : void

Fires MenuItemsLoaded event.

OnMenuItemsLoading ( HandledEventArgs e ) : void

Fires MenuItemsLoading event.

OnMouseDown ( MouseEventArgs e ) : void
OnMouseLeave ( EventArgs e ) : void
OnMouseMove ( MouseEventArgs e ) : void
OnPaint ( PaintEventArgs e ) : void
OnRightToLeftChanged ( EventArgs e ) : void
OnSizeChanged ( EventArgs e ) : void
OnTabStripItemChanged ( TabStripItemChangedEventArgs e ) : void

Fires TabStripItemSelectionChanged event.

OnTabStripItemClosed ( EventArgs e ) : void

Fires TabStripItemClosed event.

OnTabStripItemClosing ( TabStripItemClosingEventArgs e ) : void

Fires TabStripItemClosing event.

Private Methods

Method Description
AllowDraw ( FATabStripItem item ) : bool
OnCalcTabPage ( Graphics g, FATabStripItem currentItem ) : void
OnCollectionChanged ( object sender, CollectionChangeEventArgs e ) : void
OnDrawTabPage ( Graphics g, FATabStripItem currentItem ) : void
OnMenuItemClicked ( object sender, ToolStripItemClickedEventArgs e ) : void
OnMenuVisibleChanged ( object sender, EventArgs e ) : void
SelectItem ( FATabStripItem tabItem ) : void
SetDefaultSelected ( ) : void
UnDrawAll ( ) : void
UnSelectItem ( FATabStripItem tabItem ) : void
UpdateLayout ( ) : void

Method Details

AddTab() public method

Add a FATabStripItem to this control without selecting it.
public AddTab ( FATabStripItem tabItem ) : void
tabItem FATabStripItem
return void

AddTab() public method

Add a FATabStripItem to this control. User can make the currently selected item or not.
public AddTab ( FATabStripItem tabItem, bool autoSelect ) : void
tabItem FATabStripItem
autoSelect bool
return void

BeginInit() public method

public BeginInit ( ) : void
return void

Dispose() protected method

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
protected Dispose ( bool disposing ) : void
disposing bool
return void

EndInit() public method

public EndInit ( ) : void
return void

FATabStrip() public method

public FATabStrip ( ) : System
return System

GetTabItemByPoint() public method

Get a FATabStripItem at provided point. If no item was found, returns null value.
public GetTabItemByPoint ( Point pt ) : FATabStripItem
pt Point
return FATabStripItem

HitTest() public method

Returns hit test results
public HitTest ( Point pt ) : HitTestResult
pt Point
return HitTestResult

OnMenuItemsLoad() protected method

Loads menu items based on FATabStripItems currently added to this control.
protected OnMenuItemsLoad ( EventArgs e ) : void
e System.EventArgs
return void

OnMenuItemsLoaded() protected method

Fires MenuItemsLoaded event.
protected OnMenuItemsLoaded ( EventArgs e ) : void
e System.EventArgs
return void

OnMenuItemsLoading() protected method

Fires MenuItemsLoading event.
protected OnMenuItemsLoading ( HandledEventArgs e ) : void
e System.ComponentModel.HandledEventArgs
return void

OnMouseDown() protected method

protected OnMouseDown ( MouseEventArgs e ) : void
e MouseEventArgs
return void

OnMouseLeave() protected method

protected OnMouseLeave ( EventArgs e ) : void
e System.EventArgs
return void

OnMouseMove() protected method

protected OnMouseMove ( MouseEventArgs e ) : void
e MouseEventArgs
return void

OnPaint() protected method

protected OnPaint ( PaintEventArgs e ) : void
e PaintEventArgs
return void

OnRightToLeftChanged() protected method

protected OnRightToLeftChanged ( EventArgs e ) : void
e System.EventArgs
return void

OnSizeChanged() protected method

protected OnSizeChanged ( EventArgs e ) : void
e System.EventArgs
return void

OnTabStripItemChanged() protected method

Fires TabStripItemSelectionChanged event.
protected OnTabStripItemChanged ( TabStripItemChangedEventArgs e ) : void
e TabStripItemChangedEventArgs
return void

OnTabStripItemClosed() protected method

Fires TabStripItemClosed event.
protected OnTabStripItemClosed ( EventArgs e ) : void
e System.EventArgs
return void

OnTabStripItemClosing() protected method

Fires TabStripItemClosing event.
protected OnTabStripItemClosing ( TabStripItemClosingEventArgs e ) : void
e TabStripItemClosingEventArgs
return void

RemoveTab() public method

Remove a FATabStripItem from this control.
public RemoveTab ( FATabStripItem tabItem ) : void
tabItem FATabStripItem
return void

ResetFont() public method

public ResetFont ( ) : void
return void

ShouldSerializeFont() public method

public ShouldSerializeFont ( ) : bool
return bool

ShouldSerializeItems() public method

public ShouldSerializeItems ( ) : bool
return bool

ShouldSerializeSelectedItem() public method

public ShouldSerializeSelectedItem ( ) : bool
return bool

ShowMenu() public method

Display items menu
public ShowMenu ( ) : void
return void

Property Details

menu public_oe property

public ContextMenuStrip,System.Windows.Forms menu
return System.Windows.Forms.ContextMenuStrip