Leadtools.Annotations Namespace > AnnObject Class : DrawObject Method |
function Leadtools.Annotations.AnnObject.DrawObject( graphics )
This method is called internally by the annotation framework whenever the Draw method 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.
By default, this method will draw the same graphics path returned from the GetGraphicsPath method when the AnnGetGraphicsPathMode is set to DrawObject. For simple objects such as lines and rectangles, this is sufficient. More complex objects that contain elements that either cannot be expressed by a graphics path (such as images) or elements that are too expensive to be expressed by a path (such as text) override this method to draw the object directly.
This method has the following logic:
Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2