HypernovaDesktop Components · docs
Binarymission
WinForms › Power Tab Strip › BinaryExtendedPanel

BinaryExtendedPanel

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

The panel BinaryPowerTabPage is built on: a Panel that draws a one-pixel border of its own in BorderColor.

public class BinaryExtendedPanel : Panel

Inherits from / implements: Panel

Remarks

Use BinaryPowerTabPage; this class is not intended to be used on its own. Drawn directly, its border leaves the top edge open; a BinaryPowerTabPage draws its own border instead.

Members at a glance

Constructors
BinaryExtendedPanelCreates a panel with no system border.
Properties
BorderColorGets or sets the colour of the border the panel draws round itself.
BorderStyleGets or sets the system border style, which is always BorderStyle.None: the panel draws its own border, and any other value set is replaced by BorderStyle.None.
Methods
OnPaintRaises the Control.Paint event, then draws the panel's border.

Constructors

BinaryExtendedPanel

public BinaryExtendedPanel() : base()

Creates a panel with no system border.

Properties

BorderColor

public Color BorderColor

Gets or sets the colour of the border the panel draws round itself.

Value
The default is SystemColors.WindowText.
Remarks

On a BinaryPowerTabPage in a strip using the RenderingStyle.VisualStudio2008, RenderingStyle.WindowsXP or RenderingStyle.ExtendedWindowsXP style, the strip sets this as it paints unless its BinaryPowerTabStrip.ThemeBorderColorCanBeOverridden is on. The new colour is used from the panel's next repaint.

BorderStyle

public new BorderStyle BorderStyle

Gets or sets the system border style, which is always BorderStyle.None: the panel draws its own border, and any other value set is replaced by BorderStyle.None.

Methods

OnPaint

protected override void OnPaint(PaintEventArgs e)

Raises the Control.Paint event, then draws the panel's border.

Parameters
e
The event data.