[]
        
(Showing Draft Content)

FarPoint.Win.TabStrip

TabStrip Class

Represents the tab strip.

Namespace: FarPoint.Win
Assembly: FarPoint.Win.dll
Syntax
public class TabStrip : UserControl, IDropTarget, ISynchronizeInvoke, IWin32Window, IBindableComponent, IComponent, IDisposable, IContainerControl
Public Class TabStrip
    Inherits UserControl
    Implements IDropTarget, ISynchronizeInvoke, IWin32Window, IBindableComponent, IComponent, IDisposable, IContainerControl

Constructors

Name Description
TabStrip()

Initializes a new TabStrip object.

TabStrip(ITabManager)

Initializes a new TabStrip object.

Properties

Name Description
ActiveTabInflate

Gets or sets whether the active tab appears larger than the other tabs.

BackColor

Gets or sets the background color for the tab strip.

ButtonBackColor

Gets or sets the background color of the tab strip buttons.

ButtonForeColor

Gets or sets the foreground color of the tab strip buttons.

Count

Gets or sets the number of tabs.

DefaultTabShape

Gets or sets the default tab shape.

DrawControlBorder

Gets or sets whether to draw the border around the control.

Font

Gets or sets the font properties for the text in the tabs.

ForeColor

Gets or sets the text color for the tabs.

Orientation

Gets or sets the tab strip orientation.

SelectedTab

Gets or sets the active tab.

SelectedTabBackColor

Gets or sets the background color of the selected tab.

SelectedTabForeColor

Gets or sets the text color of the selected tab.

SelectedTabOutlineColor

Gets or sets the outline color of the selected tab.

ShowNavButtons

Gets or sets whether the tab strip displays buttons.

Methods

Name Description
CalculateTabLayout(Graphics, bool)

CalculateTabLayout

DrawNavArrow(NavButton, PaintEventArgs, int, int)

Draws the navigation button arrows.

DrawNavButtons(PaintEventArgs)

Draws the navigation buttons.

DrawTabs(PaintEventArgs)

Draws the tabs after computing the tab layout.

GetTabBackColor(int)

Gets the background color of the specified tab.

GetTabFont(int)

Gets the font of the specified tab.

GetTabForeColor(int)

Gets the text color of the specified tab.

GetTabPicture(int)

Gets the picture displayed in the specified tab.

GetTabRectangle(int)

Gets the rectangle for the specified tab.

GetTabShape(int)

Gets the shape of the specified tab.

GetTabText(int)

Gets the text displayed in the specified tab.

MouseOverNavButton(Point)

Gets the coordinates of the pointer.

MouseOverTab(Point)

Gets the coordinates of the pointer.

MoveTab(int, int)

Moves the specified tab to a new position in the tab strip.

OnMouseDown(MouseEventArgs)

OnMouseDown

OnMouseMove(MouseEventArgs)

OnMouseMove

OnMouseUp(MouseEventArgs)

OnMouseUp

OnPaint(PaintEventArgs)

OnPaint - Paints the tabstrip control

OnPaintBackground(PaintEventArgs)

Paints the background.

OnResize(EventArgs)

OnResize - Override the resize event

OnSizeChanged(EventArgs)

Occurs when the size has changed.

RefreshAllTabs()

Redraws all tabs in the tab strip.

RefreshTab(int)

Redraws the specified tab.

RefreshTabs(int, int)

Redraws the range of tabs between the specified tabs.

SelectTab(int, int)

Selects the range of tabs between the specified tabs.

SetTabBackColor(int, Color)

Sets the background color for the specified tab.

SetTabFont(int, Font)

Sets the font settings for the specified tab.

SetTabForeColor(int, Color)

Sets the text color for the specified tab.

SetTabInsertionBar(int, bool, bool)

Sets the tab insertion bar.

SetTabPicture(int, Picture)

Sets the picture to display in the specified tab.

SetTabShape(int, GraphicsPath)

Sets the shape of the specified tab.

SetTabText(int, string)

Sets the text displayed in the specified tab.

Events

Name Description
TabStripNavigate

Represents the method that handles the TabStripNavigate event.

TabStripSelect

Represents the method that handles the TabStripSelect event.