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



drawingContext
The drawing context on which to draw this AnnObjectBase.
drawingContext
The drawing context on which to draw this AnnObjectBase.
Draws this AnnObjectBase on the specified drawing context.

Syntax

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

Parameters

drawingContext
The drawing context on which to draw this AnnObjectBase.

Remarks

This method will call RenderObject first to draw the object itself, RenderHeader to draw the header of the object and then finally RenderLocked to draw the locked object (if the object is currently locked).

Derived annotation objects are not encouraged to override this method directly. Instead override RenderObject, RenderHeader and RenderLocked individually.

For more information, refer to OnRender method.

Requirements

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

See Also

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