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

IPowerTabStripElementsRenderer

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

Draws the overflow glyph of a BinaryPowerTabStrip in a design of your own. Assign an instance to BinaryPowerTabStrip.PowerTabStripElementsRenderer.

public interface IPowerTabStripElementsRenderer

Remarks

The renderer is used only while BinaryPowerTabStrip.OverflowMenuGlyphDrawnInEnlargedMode is on. Set the renderer before BinaryPowerTabStrip.OverflowMenuGlyphSize, which then accepts any size, and make BinaryPowerTabStrip.TabPageHeaderHeight at least as tall as the glyph.

See also

Members at a glance

Methods
RenderOverflowMenuGraphicDraws the overflow glyph. Called each time the strip paints, and as the pointer moves onto or off the glyph.

Methods

RenderOverflowMenuGraphic

void RenderOverflowMenuGraphic( Graphics renderingGraphicContext, Rectangle drawingSurfaceBounds, OverflowMenuGlyphVisualState overflowMenuGlyphVisualState)

Draws the overflow glyph. Called each time the strip paints, and as the pointer moves onto or off the glyph.

Parameters
renderingGraphicContext
The surface to draw on – the strip's own; do not dispose it.
drawingSurfaceBounds
The glyph's box, in the strip's client coordinates and device pixels. Clicks inside it open the overflow menu.
overflowMenuGlyphVisualState
OverflowMenuGlyphVisualState.Highlighted while the pointer is over the glyph or its menu is open; otherwise OverflowMenuGlyphVisualState.None.