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




Stops this AnnContainer from raising the BeforeDrawingObjects and AfterDrawingObjects events.

Syntax

Visual Basic (Declaration) 
Public Overridable Sub DisableDrawObjectEvents() 
Visual Basic (Usage)Copy Code
Dim instance As AnnContainer
 
instance.DisableDrawObjectEvents()
C# 
public virtual void DisableDrawObjectEvents()
Managed Extensions for C++ 
public: virtual void DisableDrawObjectEvents(); 
C++/CLI 
public:
virtual void DisableDrawObjectEvents(); 

Remarks

When you want to re-enable the raising of the BeforeDrawingObjects and AfterDrawingObjects events, you must call the EnableDrawObjectEvents method.

Disabling these events is useful when you do not want the automation framework to draw the handles on the objects currently being edited (selected), as for example when realizing or printing the container.

Requirements

Target Platforms: Microsoft .NET Framework 2.0, Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family

See Also

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