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



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

Syntax

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

Parameters

graphics
The Graphics surface on which to draw this AnnObject name.

Remarks

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

If the AnnObject.NameVisible property is set to false, this method will not be called.

By default, this method will draw the Name text using the AnnObject.NameFont with the AnnObject.NameForeColor as the text color and AnnObject.NameBackColor as a solid brush fill the bounding rectangle of the name text.

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