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



hook
true to hook the AnnDesigner.Container; false to unhook it.
hook
true to hook the AnnDesigner.Container; false to unhook it.
Hooks or unhooks the AnnDesigner.Container.

Syntax

Visual Basic (Declaration) 
Protected Overridable Sub HookContainer( _
   ByVal hook As Boolean _
) 
Visual Basic (Usage)Copy Code
Dim instance As AnnDesigner
Dim hook As Boolean
 
instance.HookContainer(hook)
C# 
protected virtual void HookContainer( 
   bool hook
)
C++/CLI 
protected:
virtual void HookContainer( 
   bool hook
) 

Parameters

hook
true to hook the AnnDesigner.Container; false to unhook it.

Example

For more information and an example, refer to the Implement User Defined Objects with LEADTOOLS Annotations

Remarks

Derived classes should call this method to hook the AnnDesigner.Container object if needed. Hooking the container provides support for derived classes to do extra drawing whenever the container is painted. AnnEditDesigner derived classes use this method to draw the control points of the object currently being edited.

Requirements

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

See Also

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