Products | Support | Email a link to this topic. | Send comments on this topic. | Back to Introduction - All Topics | Help Version 19.0.6.22
|
Leadtools.Annotations.Rendering Namespace > AnnWinFormsRenderingEngine Class > Attach Method : Attach(AnnContainer,Graphics) Method |
public virtual void Attach( AnnContainer container, Graphics context )
'Declaration
Public Overloads Overridable Sub Attach( _ ByVal container As AnnContainer, _ ByVal context As Graphics _ )
'Usage
Dim instance As AnnWinFormsRenderingEngine Dim container As AnnContainer Dim context As Graphics instance.Attach(container, context)
public virtual void Attach( AnnContainer container, Graphics context )
After this method is called, the Render method will draw all the objects in container into the destination graphics context (context) using the AnnContainerMapper set in AnnContainer.Mappper.
When rendering is done, you can call Detach to remove the coupling between the engine and container/context.