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

BinaryPowerTabStripDesigner

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

Visual Studio designer support for a BinaryPowerTabStrip: a first tab for a new strip, commands to add and remove tabs, smart-tag settings, and clicking a header to select its tab on the design surface.

public class BinaryPowerTabStripDesigner : ParentControlDesigner

Inherits from / implements: ParentControlDesigner

Remarks

Applied to BinaryPowerTabStrip by its DesignerAttribute; there is no need to use it from code.

Members at a glance

Properties
ActionListsGets the smart-tag panel's settings for the strip: the rendering style, colours, close buttons, gaps between tabs and the pages.
AssociatedComponentsGets the strip's pages, which the designer copies, moves and deletes along with the strip.
ControlGets the strip being designed.
Methods
DisposeStops listening to the design surface and releases the designer's resources.
GetHitTestLets a click on the overflow glyph or the strip-level close button reach the strip itself on the design surface, so the glyph's menu can be opened there.
InitializeAttaches the designer to the strip and adds the "Add a Tab page" and "Remove Tab page" commands; the second removes the last tab.
InitializeNewComponentGives a strip just dropped onto a form its first tab, captioned with the page's name and selected, so the strip is usable straight away.
PreFilterPropertiesRemoves from the property grid the inherited properties that do not apply to the strip: BackColor, ForeColor, BackgroundImage, BackgroundImageLayout, Padding, DockPadding, Margin, ImeMode, DrawGrid and GridSize.
WndProcSelects a tab, on the strip and on the design surface, when its header is clicked in the designer.

Properties

ActionLists

public override DesignerActionListCollection ActionLists

Gets the smart-tag panel's settings for the strip: the rendering style, colours, close buttons, gaps between tabs and the pages.

AssociatedComponents

public override ICollection AssociatedComponents

Gets the strip's pages, which the designer copies, moves and deletes along with the strip.

Control

public new virtual BinaryPowerTabStrip Control

Gets the strip being designed.

Methods

Dispose

protected override void Dispose(bool disposing)

Stops listening to the design surface and releases the designer's resources.

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

GetHitTest

protected override bool GetHitTest(Point point)

Lets a click on the overflow glyph or the strip-level close button reach the strip itself on the design surface, so the glyph's menu can be opened there.

Parameters
point
The point, in screen coordinates.
Returns

true over the overflow glyph or the strip-level close button.

Initialize

public override void Initialize(System.ComponentModel.IComponent component)

Attaches the designer to the strip and adds the "Add a Tab page" and "Remove Tab page" commands; the second removes the last tab.

Parameters
component
The strip.

InitializeNewComponent

public override void InitializeNewComponent(IDictionary defaultValues)

Gives a strip just dropped onto a form its first tab, captioned with the page's name and selected, so the strip is usable straight away.

Parameters
defaultValues
The property values the designer proposes.

PreFilterProperties

protected override void PreFilterProperties(IDictionary properties)

Removes from the property grid the inherited properties that do not apply to the strip: BackColor, ForeColor, BackgroundImage, BackgroundImageLayout, Padding, DockPadding, Margin, ImeMode, DrawGrid and GridSize.

Parameters
properties
The properties to filter.

WndProc

protected override void WndProc(ref Message msg)

Selects a tab, on the strip and on the design surface, when its header is clicked in the designer.

Parameters
msg
The message.