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



drawingContext
The DrawingContext that defines the AnnButtonObject object to be drawn.
drawingContext
The DrawingContext that defines the AnnButtonObject object to be drawn.
Draws this AnnObjectBase on the specified drawing context.

Syntax

Visual Basic (Declaration) 
Protected Overridable Sub RenderObject( _
   ByVal drawingContext As DrawingContext _
) 
Visual Basic (Usage)Copy Code
Dim instance As AnnObjectBase
Dim drawingContext As DrawingContext
 
instance.RenderObject(drawingContext)
C# 
protected virtual void RenderObject( 
   DrawingContext drawingContext
)
C++/CLI 
protected:
virtual void RenderObject( 
   DrawingContext drawingContext
) 

Parameters

drawingContext
The DrawingContext that defines the AnnButtonObject object to be drawn.

Remarks

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

If an object is invisible (Visibility property wasn't set to Visible), it will not draw itself.

By default, this method will draw the same geometry returned from the AnnObjectBase.DefiningGeometry property. 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.

Requirements

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

See Also

RenderObject requires a Document/Medical product license and unlock key. For more information, refer to: Imaging Pro/Document/Medical Features and Unlocking Special LEAD Features.