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

BinaryPowerTabPageDesigner

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

Visual Studio designer support for a BinaryPowerTabPage: lets controls be dropped onto the page, keeps the page inside a tab strip, and hides the inherited properties the strip manages itself.

public class BinaryPowerTabPageDesigner : ParentControlDesigner

Inherits from / implements: ParentControlDesigner

Remarks

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

Members at a glance

Methods
CanBeParentedToAllows the page to be dropped only onto a BinaryPowerTabStrip.
InitializeAttaches the designer to the page being designed.
OnPaintAdornmentsDraws a dashed outline round the page on the design surface, so its edges can be seen.
PreFilterPropertiesRemoves from the property grid the inherited properties the strip sets for its pages, or that do not apply to a page – among them Dock, Location, Padding, Margin, Font, AutoScroll, AutoSize and BorderStyle.

Methods

CanBeParentedTo

public override bool CanBeParentedTo(IDesigner parentDesigner)

Allows the page to be dropped only onto a BinaryPowerTabStrip.

Parameters
parentDesigner
The designer of the intended parent.
Returns

true when the parent is a tab strip.

Initialize

public override void Initialize(IComponent component)

Attaches the designer to the page being designed.

Parameters
component
The page.

OnPaintAdornments

protected override void OnPaintAdornments(PaintEventArgs pe)

Draws a dashed outline round the page on the design surface, so its edges can be seen.

Parameters
pe
The event data.

PreFilterProperties

protected override void PreFilterProperties(System.Collections.IDictionary properties)

Removes from the property grid the inherited properties the strip sets for its pages, or that do not apply to a page – among them Dock, Location, Padding, Margin, Font, AutoScroll, AutoSize and BorderStyle.

Parameters
properties
The properties to filter.