C# Class FarsiLibrary.Win.FATabStrip

Inheritance: FarsiLibrary.Win.BaseClasses.BaseStyledPanel, ISupportInitialize, IDisposable
Afficher le fichier Open project: DanWBR/dwsim3 Class Usage Examples

Méthodes publiques

Свойство Type Description
menu System.Windows.Forms.ContextMenuStrip

Private Properties

Свойство Type Description
AllowDraw bool
OnCalcTabPage void
OnCollectionChanged void
OnDrawTabPage void
OnMenuItemClicked void
OnMenuVisibleChanged void
SelectItem void
SetDefaultSelected void
UnDrawAll void
UnSelectItem void
UpdateLayout void

Méthodes publiques

Méthode 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

Méthodes protégées

Méthode 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

Méthode 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 méthode

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

AddTab() public méthode

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
Résultat void

BeginInit() public méthode

public BeginInit ( ) : void
Résultat void

Dispose() protected méthode

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

EndInit() public méthode

public EndInit ( ) : void
Résultat void

FATabStrip() public méthode

public FATabStrip ( ) : System
Résultat System

GetTabItemByPoint() public méthode

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

HitTest() public méthode

Returns hit test results
public HitTest ( Point pt ) : HitTestResult
pt Point
Résultat HitTestResult

OnMenuItemsLoad() protected méthode

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

OnMenuItemsLoaded() protected méthode

Fires MenuItemsLoaded event.
protected OnMenuItemsLoaded ( EventArgs e ) : void
e System.EventArgs
Résultat void

OnMenuItemsLoading() protected méthode

Fires MenuItemsLoading event.
protected OnMenuItemsLoading ( HandledEventArgs e ) : void
e System.ComponentModel.HandledEventArgs
Résultat void

OnMouseDown() protected méthode

protected OnMouseDown ( MouseEventArgs e ) : void
e MouseEventArgs
Résultat void

OnMouseLeave() protected méthode

protected OnMouseLeave ( EventArgs e ) : void
e System.EventArgs
Résultat void

OnMouseMove() protected méthode

protected OnMouseMove ( MouseEventArgs e ) : void
e MouseEventArgs
Résultat void

OnPaint() protected méthode

protected OnPaint ( PaintEventArgs e ) : void
e PaintEventArgs
Résultat void

OnRightToLeftChanged() protected méthode

protected OnRightToLeftChanged ( EventArgs e ) : void
e System.EventArgs
Résultat void

OnSizeChanged() protected méthode

protected OnSizeChanged ( EventArgs e ) : void
e System.EventArgs
Résultat void

OnTabStripItemChanged() protected méthode

Fires TabStripItemSelectionChanged event.
protected OnTabStripItemChanged ( TabStripItemChangedEventArgs e ) : void
e TabStripItemChangedEventArgs
Résultat void

OnTabStripItemClosed() protected méthode

Fires TabStripItemClosed event.
protected OnTabStripItemClosed ( EventArgs e ) : void
e System.EventArgs
Résultat void

OnTabStripItemClosing() protected méthode

Fires TabStripItemClosing event.
protected OnTabStripItemClosing ( TabStripItemClosingEventArgs e ) : void
e TabStripItemClosingEventArgs
Résultat void

RemoveTab() public méthode

Remove a FATabStripItem from this control.
public RemoveTab ( FATabStripItem tabItem ) : void
tabItem FATabStripItem
Résultat void

ResetFont() public méthode

public ResetFont ( ) : void
Résultat void

ShouldSerializeFont() public méthode

public ShouldSerializeFont ( ) : bool
Résultat bool

ShouldSerializeItems() public méthode

public ShouldSerializeItems ( ) : bool
Résultat bool

ShouldSerializeSelectedItem() public méthode

public ShouldSerializeSelectedItem ( ) : bool
Résultat bool

ShowMenu() public méthode

Display items menu
public ShowMenu ( ) : void
Résultat void

Property Details

menu public_oe property

public ContextMenuStrip,System.Windows.Forms menu
Résultat System.Windows.Forms.ContextMenuStrip