HypernovaDesktop Components · docs
Binarymission
WinFormsPower Tab Strip › BinaryPowerTabPage

BinaryPowerTabPage

class.NET 6 / 8 / 10.NET Framework 4.8Binarymission.WinForms.Controls.TabControls

The tab page class that will be hosted in the BinaryPowerTabStrip control class.

public class BinaryPowerTabPage : BinaryExtendedPanel

Inherits from / implements: BinaryExtendedPanel

Members at a glance

BinaryPowerTabPageInitializes a new instance of the BinaryPowerTabPage class.
BinaryPowerTabPageInitializes a new instance of the BinaryPowerTabPage class.
BorderSizeGets or sets the size of the border.
CurrentlySelectedGets or sets a value indicating whether the tab page is currently selected.
CustomEndColorGets or sets the custom end color for painting the tab page header.
CustomStartColorGets or sets the custom start color for painting the tab page header.
DisabledImageGets or sets the disabled mode image to be displayed in the tab page header.
HeaderTextFontGets or sets the font for rendering the header text for this instance of BinaryPowerTabPage.
ImageGets or sets the image to be displayed in the tab page header.
IsBackgroundTransparentGets or sets whether the control supports rendering its background with full transparency.
IsHeaderEnabledGets or sets a value indicating whether this instance's header is enabled.
OverflowMenuImageGets or sets the image shown beside this page's entry in the strip's overflow menu, or null to use Image there as well.
ShouldRenderCloseButtonGets or sets whether to render the close button on the page header.
SizeThe size of the page. Hidden from the base so the strip stays in charge of laying its pages out.
TabPageContentIsDirtyGets or sets whether the current tab page is dirty - i.e. has got some changes in its children.
TabPageHeaderForeColorGets or sets the color of the tab page header text.
TabPageSideBarFillColorGets or sets the color of the tab page side bar fill.
TextGets or sets the tab page header text.
ToolTipTextGets or sets the tooltip text that will be displayed when the user moves / hovers the mouse pointer over a tab page's header area.
VisibleWhether this page is the one on show. Hidden from the base because a page's visibility follows the selected tab and is not set directly.
DisposeReleases the resources held by this BinaryPowerTabPage.
OnPaintRaises the Paint event. BinaryPowerTabPage overrides it so the control's own handling runs alongside the base behavior.
OnParentChangedOverriding the inherited member.
ShouldSerializeControlsTells the designer whether Controls is worth writing into the generated code, which is how a property is kept out of the designer file when it still holds its default.
ShouldSerializeDockTells the designer whether Dock is worth writing into the generated code, which is how a property is kept out of the designer file when it still holds its default.
ShouldSerializeIsPaintingCompleteTells the designer whether IsPaintingComplete is worth writing into the generated code, which is how a property is kept out of the designer file when it still holds its default.
ShouldSerializeVisibleTells the designer whether Visible is worth writing into the generated code, which is how a property is kept out of the designer file when it still holds its default.
TabPageChangedOccurs when the tab page is changed.

Constructors

BinaryPowerTabPage

public BinaryPowerTabPage() : this(string.Empty/*, null*/)

Initializes a new instance of the BinaryPowerTabPage class.

BinaryPowerTabPage

public BinaryPowerTabPage(string tabPageText/*, Control childControl*/)

Initializes a new instance of the BinaryPowerTabPage class.

Properties

BorderSize

public int BorderSize

Gets or sets the size of the border.

Value. The size of the border.

CurrentlySelected

public bool CurrentlySelected

Gets or sets a value indicating whether the tab page is currently selected.

CustomEndColor

public Color CustomEndColor

Gets or sets the custom end color for painting the tab page header.

CustomStartColor

public Color CustomStartColor

Gets or sets the custom start color for painting the tab page header.

DisabledImage

public Image DisabledImage

Gets or sets the disabled mode image to be displayed in the tab page header.

HeaderTextFont

public Font HeaderTextFont

Gets or sets the font for rendering the header text for this instance of BinaryPowerTabPage.

Image

public Image Image

Gets or sets the image to be displayed in the tab page header.

IsBackgroundTransparent

public bool IsBackgroundTransparent

Gets or sets whether the control supports rendering its background with full transparency.

IsHeaderEnabled

public bool IsHeaderEnabled

Gets or sets a value indicating whether this instance's header is enabled.

OverflowMenuImage

public Image OverflowMenuImage

Gets or sets the image shown beside this page's entry in the strip's overflow menu, or null to use Image there as well.

The menu used to show Image and nothing else, so a menu with icons meant headers with icons too. This gives the menu entry an image of its own; the header is unchanged. The menu scales images to its image size, so give one drawn for the display - 16 logical pixels, 40 at 250% - to keep it sharp (HANDOVER 3bb).

ShouldRenderCloseButton

public bool ShouldRenderCloseButton

Gets or sets whether to render the close button on the page header.

Size

public new Size Size

The size of the page. Hidden from the base so the strip stays in charge of laying its pages out.

TabPageContentIsDirty

public bool TabPageContentIsDirty

Gets or sets whether the current tab page is dirty - i.e. has got some changes in its children.

This property can be used when you want to show that the tab page data has been changed by the user, and needs his attention, may be, to save data etc. in that page.

TabPageHeaderForeColor

public Color TabPageHeaderForeColor

Gets or sets the color of the tab page header text.

TabPageSideBarFillColor

public Color TabPageSideBarFillColor

Gets or sets the color of the tab page side bar fill.

Value. The color of the tab page side bar fill.

Text

public string Text

Gets or sets the tab page header text.

ToolTipText

public string ToolTipText

Gets or sets the tooltip text that will be displayed when the user moves / hovers the mouse pointer over a tab page's header area.

Visible

public new bool Visible

Whether this page is the one on show. Hidden from the base because a page's visibility follows the selected tab and is not set directly.

Methods

Dispose

protected override void Dispose(bool disposing)

Releases the resources held by this BinaryPowerTabPage.

disposing
true when called from Dispose; false when called from the finalizer.

OnPaint

protected override void OnPaint(PaintEventArgs e)

Raises the Paint event. BinaryPowerTabPage overrides it so the control's own handling runs alongside the base behavior.

e
The data for the event.

OnParentChanged

protected override void OnParentChanged(EventArgs e)

Overriding the inherited member.

e

ShouldSerializeControls

public bool ShouldSerializeControls()

Tells the designer whether Controls is worth writing into the generated code, which is how a property is kept out of the designer file when it still holds its default.

ShouldSerializeDock

public bool ShouldSerializeDock()

Tells the designer whether Dock is worth writing into the generated code, which is how a property is kept out of the designer file when it still holds its default.

ShouldSerializeIsPaintingComplete

public bool ShouldSerializeIsPaintingComplete()

Tells the designer whether IsPaintingComplete is worth writing into the generated code, which is how a property is kept out of the designer file when it still holds its default.

ShouldSerializeVisible

public bool ShouldSerializeVisible()

Tells the designer whether Visible is worth writing into the generated code, which is how a property is kept out of the designer file when it still holds its default.

Events

TabPageChanged

public event EventHandler TabPageChanged

Occurs when the tab page is changed.