LEADTOOLS Annotations (Leadtools.Annotations assembly) Send comments on this topic. | Back to Introduction - All Topics | Help Version 17.0.3.29
BeginDraw Method
See Also 
Leadtools.Annotations Namespace > AnnObject Class : BeginDraw Method



graphics
The Graphics surface on which to draw this AnnObject.

The BeginDraw Method is available in LEADTOOLS Document and Medical Imaging toolkits.

graphics
The Graphics surface on which to draw this AnnObject.
Called by the AnnObject.Draw method to set up the object's AnnObject.PhysicalTransform matrix into the g graphics surface.

Syntax

Visual Basic (Declaration) 
Protected Overridable Function BeginDraw( _
   ByVal graphics As Graphics _
) As GraphicsState
Visual Basic (Usage)Copy Code
Dim instance As AnnObject
Dim graphics As Graphics
Dim value As GraphicsState
 
value = instance.BeginDraw(graphics)
C# 
protected virtual GraphicsState BeginDraw( 
   Graphics graphics
)
C++/CLI 
protected:
virtual GraphicsState^ BeginDraw( 
   Graphics^ graphics
) 

Parameters

graphics
The Graphics surface on which to draw this AnnObject.

Return Value

A System.Drawing.Drawing2D.GraphicsState object if this AnnObject is visible; null (Nothing in Visual Basic) otherwise.

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.

Derived classes that call this method must call EndDraw after all drawing operation is over passing the System.Drawing.Drawing2D.GraphicsState value returned from this method.

Requirements

Target Platforms: Microsoft .NET Framework 2.0, Windows 2000, Windows XP, Windows Server 2003 family, Windows Server 2008 family, Windows Vista, Windows 7

See Also

Leadtools.Annotations requires a Document or Medical toolkit license and unlock key. For more information, refer to: Imaging Pro/Document/Medical Features