The DrawName Method is available in LEADTOOLS Document and Medical Imaging toolkits.
- graphics
- The Graphics surface on which to draw this AnnObject name.
Visual Basic (Usage) | Copy Code |
---|---|
Dim instance As AnnObject Dim graphics As Graphics instance.DrawName(graphics) |
Parameters
- graphics
- The Graphics surface on which to draw this AnnObject name.
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.
Target Platforms: Microsoft .NET Framework 2.0, Windows 2000, Windows XP, Windows Server 2003 family, Windows Server 2008 family, Windows Vista, Windows 7