Skybound VisualTips

VisualTipRenderer.Draw Method 

Draws a VisualTip onto a surface defined by a PaintEventArgs, using the specified VisualTipLayout.

[Visual Basic]
Public Sub Draw( _
   ByVal e As PaintEventArgs, _
   ByVal tip As VisualTip, _
   ByVal layout As VisualTipLayout _
)
[C#]
public void Draw(
   PaintEventArgs e,
   VisualTip tip,
   VisualTipLayout layout
);

Parameters

e
A PaintEventArgs which determines the Graphics surface on which the tip is painted.
tip
The VisualTip to render.
layout
A VisualTipLayout which defines the location of various elements on the tip -or- a null reference to use the default layout (obtained by calling CreateLayout).

Remarks

This method draws the tip by first calling OnDrawShadow, then OnDrawWindow, and finally OnDrawElement for each of the defined values of VisualTipRenderElement.

Exceptions

Exception Type Condition
ArgumentNullException The tip parameter may not be a null reference.
ArgumentException The specified tip must be associated with a VisualTipProvider before it is rendered.
ArgumentNullException The e parameter may not be null.

See Also

VisualTipRenderer Class | Skybound.VisualTips.Rendering Namespace