Leadtools.Annotations Requires Document/Medical product license | Send comments on this topic. | Back to Introduction - All Topics | Help Version 16.5.9.25
Draw Method
See Also 
Leadtools.Annotations Namespace > AnnObject Class : Draw Method



graphics
The Graphics surface on which to draw this AnnObject.
graphics
The Graphics surface on which to draw this AnnObject.
Draws this AnnObject on the specified surface.

Syntax

Visual Basic (Declaration) 
Public Overridable Sub Draw( _
   ByVal graphics As Graphics _
) 
Visual Basic (Usage)Copy Code
Dim instance As AnnObject
Dim graphics As Graphics
 
instance.Draw(graphics)
C# 
public virtual void Draw( 
   Graphics graphics
)
C++/CLI 
public:
virtual void Draw( 
   Graphics graphics
) 

Parameters

graphics
The Graphics surface on which to draw this AnnObject.

Remarks

This method is called internally by the annotation framework whenever the Draw of the owner container of this AnnObject is called. You do not need to call this method directly.

If an object is invisible (Visible is set to false), it will not draw itself.

This method will call AnnObject.DrawObject first to draw the object itself, DrawName to draw the name of the object and then finally DrawLocked to draw the locked object (if the object is currently locked).

Derived annotation objects are not encouraged to override this method directly. Instead override AnnObject.DrawObject, DrawName and DrawLocked individually.

Requirements

Target Platforms: Microsoft .NET Framework 3.0, Windows XP, Windows Server 2003 family, Windows Server 2008 family

See Also

Leadtools.Annotations requires a Document or Medical toolkit license and unlock key. For more information, refer to: Imaging Pro/Document/Medical Features