BinarySuperToolTipDrawingEventArgs
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 | |
|---|---|
AssociatedControl | Gets the control whose tool tip is being drawn. |
DrawingRectangle | Gets the area of the tip given to the region being drawn, in the tip's own coordinates. |
Graphics | Gets the surface the tip is being drawn on. |
Handled | Gets or sets whether the region has been drawn by the handler, so the component should not draw it. |
Properties
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
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.FooterDrawfor where it is placed).
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
Gets or sets whether the region has been drawn by the handler, so the component should not draw it.
- Value
truewhen the handler has drawn the region. The default isfalse, 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.