LEADTOOLS JavaScript (Leadtools.Annotations.Rendering)

Attach Method (AnnSvgRenderingEngine)

Show in webframe
The annotation container that contains the objects to draw.
The parent HTML element to render the annotations to.
Attaches this renderng engine to a container and a parent HTML element.
Syntax
 function Leadtools.Annotations.Rendering.AnnSvgRenderingEngine.attach( 
   container ,
   element 
)

Parameters

ParameterTypeDescription
containerAnnContainerThe annotation container that contains the objects to draw.
elementLeadtools.Html.ElementThe parent HTML element to render the annotations to.
Remarks

After this method is called, the Leadtools.Annotations.Core.AnnRenderingEngine.Render(Leadtools.LeadRectD,System.Boolean) method will render all the objects in container into the element by creating (or updating) an SVG element and its children using the Leadtools.Annotations.Core.AnnContainerMapper set in AnnContainer.Mappper.

When rendering is done, you can call Detach to remove the coupling between the engine and container/context.

See Also

Reference

AnnSvgRenderingEngine Object
AnnSvgRenderingEngine Members

 

 


Products | Support | Contact Us | Copyright Notices
© 2006-2014 All Rights Reserved. LEAD Technologies, Inc.