BinaryPowerTabStripDesigner
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 | |
|---|---|
ActionLists | Gets the smart-tag panel's settings for the strip: the rendering style, colours, close buttons, gaps between tabs and the pages. |
AssociatedComponents | Gets the strip's pages, which the designer copies, moves and deletes along with the strip. |
Control | Gets the strip being designed. |
| Methods | |
Dispose | Stops listening to the design surface and releases the designer's resources. |
GetHitTest | 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. |
Initialize | Attaches the designer to the strip and adds the "Add a Tab page" and "Remove Tab page" commands; the second removes the last tab. |
InitializeNewComponent | 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. |
PreFilterProperties | 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. |
WndProc | Selects a tab, on the strip and on the design surface, when its header is clicked in the designer. |
Properties
ActionLists
Gets the smart-tag panel's settings for the strip: the rendering style, colours, close buttons, gaps between tabs and the pages.
AssociatedComponents
Gets the strip's pages, which the designer copies, moves and deletes along with the strip.
Control
Gets the strip being designed.
Methods
Dispose
Stops listening to the design surface and releases the designer's resources.
Parameters
disposingtruewhen called fromDispose;falsefrom the finalizer.
GetHitTest
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
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
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
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
Selects a tab, on the strip and on the design surface, when its header is clicked in the designer.
Parameters
msg- The message.