TabControl Class

Definition

Line 220 of System.Windows/TabControl.cm

Inheritance

Constructors & Destructor

public TabControl(TabControlCreateParams& createParams)
public TabControl(const Font& font_, const Color& frameColor_, const Point& location, const Size& size, Dock dock, Anchors anchors)
public TabControl(const Point& location, const Size& size, Dock dock, Anchors anchors)

Member Functions

public void AddTabPage(TabPage* tabPage)
public void AddTabPage(const String<char>& text)
public void AddTabPage(const String<char>& text, const String<char>& key)
internal nothrow void AddTabPageToTabPageMap(TabPage* tabPage)
private void CalculateMetrics(Graphics& graphics)
internal inline nothrow const StringFormat& CenterFormat() const
private inline nothrow bool Changed() const
public void CloseAllTabPages()
internal inline nothrow const Pen& CloseBoxPen() const
internal inline nothrow const SolidBrush& CloseBoxSelectedBrush() const
public void CloseTabPage(TabPage* tabPage)
private void DrawFrame(Graphics& graphics)
private void DrawSelectedTabPage(const Rect& clipRect)
private void DrawTabs(Graphics& graphics)
internal inline nothrow const Pen& FramePen() const
internal inline nothrow const Font& GetFont() const
internal inline nothrow const StringFormat& GetStringFormat() const
public nothrow TabPage* GetTabPageByKey(const String<char>& key) const
internal inline nothrow int HeaderHeight() const
public nothrow int IndexOf(TabPage* tabPage) const
internal inline nothrow int LeadingWidth() const
private void Measure(Graphics& graphics)
private void MeasureWidthsAndHeight(Graphics& graphics)
protected override void OnLocationChanged()
protected override void OnMouseDown(MouseEventArgs& args)
protected override void OnMouseEnter()
protected override void OnMouseLeave()
protected override void OnMouseMove(MouseEventArgs& args)
protected override void OnPaint(PaintEventArgs& args)
protected override void OnSizeChanged(uint windowState)
protected virtual void OnTabPageSelected()
internal inline nothrow int OverlapWidth() const
internal nothrow void RemoveTabPageFromTabPageMap(TabPage* tabPage)
private inline nothrow void ResetChanged()
internal inline nothrow float RoundingRadius() const
public void SelectNextTabPage()
public void SelectPreviousTabPage()
public inline nothrow TabPage* SelectedTabPage() const
internal inline nothrow void SetChanged()
internal nothrow void SetHeaderHeight(int headerHeight_)
public void SetSelectedTabPage(TabPage* tabPage)
private void SetSelectedTabPagePos()
public void SetTabNormalBackgroundColor(const Color& tabNormalBackgroundColor_)
public void SetTabSelectedBackgroundColor(const Color& tabSelectedBackgroundColor_)
public void SetTextColor(const Color& textColor_)
private void SetVisibility(Graphics& graphics)
internal inline nothrow const Padding& TabCloseBoxPadding() const
internal inline nothrow const SolidBrush& TabNormalBackgroundBrush() const
internal inline nothrow const Padding& TabPadding() const
public Event<TabPageSelectedEventHandler, EmptyEventArgs>& TabPageSelectedEvent()
public const Container& TabPages() const
internal inline nothrow const SolidBrush& TabSelectedBackgroundBrush() const
internal inline nothrow const SolidBrush& TextBrush() const
internal inline nothrow int TopMarginHeight() const

Enumerated Types

private enum Flags

Member Variables

private StringFormat centerFormat
private Pen closeBoxPen
private float closeBoxPenWidth
private SolidBrush closeBoxSelectedBrush
private Color closeBoxSelectedColor
private TabPage* closeStateTabPage
private Flags flags
private Font font
private Color frameColor
private Pen framePen
private int headerHeight
private int leadingWidth
private int overlapWidth
private float roundingRadius
private TabPage* selectedTabPage
private StringFormat stringFormat
private Padding tabCloseBoxPadding
private SolidBrush tabNormalBackgroundBrush
private Color tabNormalBackgroundColor
private Padding tabPadding
private HashMap<String<char>, TabPage*, Hasher<String<char>>, EqualTo<String<char>>> tabPageMap
private Event<TabPageSelectedEventHandler, EmptyEventArgs> tabPageSelectedEvent
private Container tabPages
private SolidBrush tabSelectedBackgroundBrush
private Color tabSelectedBackgroundColor
private SolidBrush textBrush
private Color textColor
private int topMarginHeight

Constructor& Destructor Details

TabControl Constructor

public TabControl(TabControlCreateParams& createParams)

Definition
Line 245 of System.Windows/TabControl.cm


TabControl Constructor

public TabControl(const Font& font_, const Color& frameColor_, const Point& location, const Size& size, Dock dock, Anchors anchors)

Definition
Line 226 of System.Windows/TabControl.cm


TabControl Constructor

public TabControl(const Point& location, const Size& size, Dock dock, Anchors anchors)

Definition
Line 241 of System.Windows/TabControl.cm


Member Function Details

AddTabPage Member Function

public void AddTabPage(TabPage* tabPage)

Definition
Line 297 of System.Windows/TabControl.cm


AddTabPage Member Function

public void AddTabPage(const String<char>& text)

Definition
Line 308 of System.Windows/TabControl.cm


AddTabPage Member Function

public void AddTabPage(const String<char>& text, const String<char>& key)

Definition
Line 304 of System.Windows/TabControl.cm


AddTabPageToTabPageMap Member Function

internal nothrow void AddTabPageToTabPageMap(TabPage* tabPage)

Definition
Line 618 of System.Windows/TabControl.cm


CalculateMetrics Member Function

private void CalculateMetrics(Graphics& graphics)

Definition
Line 695 of System.Windows/TabControl.cm


CenterFormat Member Function

internal inline nothrow const StringFormat& CenterFormat()

Definition
Line 770 of System.Windows/TabControl.cm


Changed Member Function

private inline nothrow bool Changed()

Definition
Line 774 of System.Windows/TabControl.cm


CloseAllTabPages Member Function

public void CloseAllTabPages()

Definition
Line 338 of System.Windows/TabControl.cm


CloseBoxPen Member Function

internal inline nothrow const Pen& CloseBoxPen()

Definition
Line 714 of System.Windows/TabControl.cm


CloseBoxSelectedBrush Member Function

internal inline nothrow const SolidBrush& CloseBoxSelectedBrush()

Definition
Line 730 of System.Windows/TabControl.cm


CloseTabPage Member Function

public void CloseTabPage(TabPage* tabPage)

Definition
Line 312 of System.Windows/TabControl.cm


DrawFrame Member Function

private void DrawFrame(Graphics& graphics)

Definition
Line 598 of System.Windows/TabControl.cm


DrawSelectedTabPage Member Function

private void DrawSelectedTabPage(const Rect& clipRect)

Definition
Line 590 of System.Windows/TabControl.cm


DrawTabs Member Function

private void DrawTabs(Graphics& graphics)

Definition
Line 551 of System.Windows/TabControl.cm


FramePen Member Function

internal inline nothrow const Pen& FramePen()

Definition
Line 710 of System.Windows/TabControl.cm


GetFont Member Function

internal inline nothrow const Font& GetFont()

Definition
Line 706 of System.Windows/TabControl.cm


GetStringFormat Member Function

internal inline nothrow const StringFormat& GetStringFormat()

Definition
Line 766 of System.Windows/TabControl.cm


GetTabPageByKey Member Function

public nothrow TabPage* GetTabPageByKey(const String<char>& key)

Definition
Line 374 of System.Windows/TabControl.cm


HeaderHeight Member Function

internal inline nothrow int HeaderHeight()

Definition
Line 742 of System.Windows/TabControl.cm


IndexOf Member Function

public nothrow int IndexOf(TabPage* tabPage)

Definition
Line 359 of System.Windows/TabControl.cm


LeadingWidth Member Function

internal inline nothrow int LeadingWidth()

Definition
Line 734 of System.Windows/TabControl.cm


Measure Member Function

private void Measure(Graphics& graphics)

Definition
Line 632 of System.Windows/TabControl.cm


MeasureWidthsAndHeight Member Function

private void MeasureWidthsAndHeight(Graphics& graphics)

Definition
Line 639 of System.Windows/TabControl.cm


OnLocationChanged Member Function

protected override void OnLocationChanged()

Definition
Line 569 of System.Windows/TabControl.cm


OnMouseDown Member Function

protected override void OnMouseDown(MouseEventArgs& args)

Definition
Line 463 of System.Windows/TabControl.cm


OnMouseEnter Member Function

protected override void OnMouseEnter()

Definition
Line 418 of System.Windows/TabControl.cm


OnMouseLeave Member Function

protected override void OnMouseLeave()

Definition
Line 423 of System.Windows/TabControl.cm


OnMouseMove Member Function

protected override void OnMouseMove(MouseEventArgs& args)

Definition
Line 433 of System.Windows/TabControl.cm


OnPaint Member Function

protected override void OnPaint(PaintEventArgs& args)

Definition
Line 386 of System.Windows/TabControl.cm


OnSizeChanged Member Function

protected override void OnSizeChanged(uint windowState)

Definition
Line 574 of System.Windows/TabControl.cm


OnTabPageSelected Member Function

protected virtual void OnTabPageSelected()

Definition
Line 543 of System.Windows/TabControl.cm


OverlapWidth Member Function

internal inline nothrow int OverlapWidth()

Definition
Line 758 of System.Windows/TabControl.cm


RemoveTabPageFromTabPageMap Member Function

internal nothrow void RemoveTabPageFromTabPageMap(TabPage* tabPage)

Definition
Line 625 of System.Windows/TabControl.cm


ResetChanged Member Function

private inline nothrow void ResetChanged()

Definition
Line 782 of System.Windows/TabControl.cm


RoundingRadius Member Function

internal inline nothrow float RoundingRadius()

Definition
Line 762 of System.Windows/TabControl.cm


SelectNextTabPage Member Function

public void SelectNextTabPage()

Definition
Line 509 of System.Windows/TabControl.cm


SelectPreviousTabPage Member Function

public void SelectPreviousTabPage()

Definition
Line 526 of System.Windows/TabControl.cm


SelectedTabPage Member Function

public inline nothrow TabPage* SelectedTabPage()

Definition
Line 483 of System.Windows/TabControl.cm


SetChanged Member Function

internal inline nothrow void SetChanged()

Definition
Line 778 of System.Windows/TabControl.cm


SetHeaderHeight Member Function

internal nothrow void SetHeaderHeight(int headerHeight_)

Definition
Line 746 of System.Windows/TabControl.cm


SetSelectedTabPage Member Function

public void SetSelectedTabPage(TabPage* tabPage)

Definition
Line 487 of System.Windows/TabControl.cm


SetSelectedTabPagePos Member Function

private void SetSelectedTabPagePos()

Definition
Line 579 of System.Windows/TabControl.cm


SetTabNormalBackgroundColor Member Function

public void SetTabNormalBackgroundColor(const Color& tabNormalBackgroundColor_)

Definition
Line 276 of System.Windows/TabControl.cm


SetTabSelectedBackgroundColor Member Function

public void SetTabSelectedBackgroundColor(const Color& tabSelectedBackgroundColor_)

Definition
Line 285 of System.Windows/TabControl.cm


SetTextColor Member Function

public void SetTextColor(const Color& textColor_)

Definition
Line 267 of System.Windows/TabControl.cm


SetVisibility Member Function

private void SetVisibility(Graphics& graphics)

Definition
Line 649 of System.Windows/TabControl.cm


TabCloseBoxPadding Member Function

internal inline nothrow const Padding& TabCloseBoxPadding()

Definition
Line 754 of System.Windows/TabControl.cm


TabNormalBackgroundBrush Member Function

internal inline nothrow const SolidBrush& TabNormalBackgroundBrush()

Definition
Line 722 of System.Windows/TabControl.cm


TabPadding Member Function

internal inline nothrow const Padding& TabPadding()

Definition
Line 750 of System.Windows/TabControl.cm


TabPageSelectedEvent Member Function

public Event<TabPageSelectedEventHandler, EmptyEventArgs>& TabPageSelectedEvent()

Definition
Line 547 of System.Windows/TabControl.cm


TabPages Member Function

public const Container& TabPages()

Definition
Line 293 of System.Windows/TabControl.cm


TabSelectedBackgroundBrush Member Function

internal inline nothrow const SolidBrush& TabSelectedBackgroundBrush()

Definition
Line 726 of System.Windows/TabControl.cm


TextBrush Member Function

internal inline nothrow const SolidBrush& TextBrush()

Definition
Line 718 of System.Windows/TabControl.cm


TopMarginHeight Member Function

internal inline nothrow int TopMarginHeight()

Definition
Line 738 of System.Windows/TabControl.cm