HypernovaDesktop Components · docs
Binarymission
WinForms › Super Tooltip › BinarySuperToolTipDrawingEventArgs

BinarySuperToolTipDrawingEventArgs

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

Provides data for BinarySuperToolTip.HeaderDraw, BinarySuperToolTip.BodyDraw and BinarySuperToolTip.FooterDraw: the surface and rectangle to draw a region of a tip in, and a way to say it has been drawn.

public class BinarySuperToolTipDrawingEventArgs : EventArgs

Inherits from / implements: EventArgs

Members at a glance

Properties
AssociatedControlGets the control whose tool tip is being drawn.
DrawingRectangleGets the area of the tip given to the region being drawn, in the tip's own coordinates.
GraphicsGets the surface the tip is being drawn on.
HandledGets or sets whether the region has been drawn by the handler, so the component should not draw it.

Properties

AssociatedControl

public Control AssociatedControl

Gets the control whose tool tip is being drawn.

Remarks

The drawing events are raised for every control the component gives a tip, so compare this with your control before drawing.

DrawingRectangle

public RectangleF DrawingRectangle

Gets the area of the tip given to the region being drawn, in the tip's own coordinates.

Value
The top fifth of the tip for the title area, the middle three fifths for the body, and a fifth of the height for the footer (see BinarySuperToolTip.FooterDraw for where it is placed).

Graphics

public Graphics Graphics

Gets the surface the tip is being drawn on.

Remarks

The background has already been filled when the event is raised. Draw within DrawingRectangle; do not dispose this object.

Handled

public bool Handled

Gets or sets whether the region has been drawn by the handler, so the component should not draw it.

Value
true when the handler has drawn the region. The default is false, which lets the component draw its own title, body or footer as if no handler were attached.
Remarks

The events belong to the component, not to one control, so a handler that takes over only some tips returns early, leaving this false, for the others. Use AssociatedControl to tell them apart.