Leadtools.Dicom.Common Send comments on this topic. | Back to Introduction - All Topics | Help Version 17.0.3.29
BeforeAddElement Event
See Also 
Leadtools.Dicom.Common.Editing Namespace > DicomEditableObject Class : BeforeAddElement Event



Occurs when before an element is added to this object.

Syntax

Visual Basic (Declaration) 
Public Event BeforeAddElement As EventHandler(Of BeforeAddElementEventArgs)
Visual Basic (Usage)Copy Code
Dim instance As DicomEditableObject
Dim handler As EventHandler(Of BeforeAddElementEventArgs)
 
AddHandler instance.BeforeAddElement, handler
C# 
public event EventHandler<BeforeAddElementEventArgs> BeforeAddElement
C++/CLI 
public:
event EventHandler<BeforeAddElementEventArgs^>^ BeforeAddElement

Event Data

The event handler receives an argument of type BeforeAddElementEventArgs containing data related to this event. The following BeforeAddElementEventArgs properties provide information specific to this event.

PropertyDescription
Cancel (Inherited from System.ComponentModel.CancelEventArgs)Gets or sets a value indicating whether the event should be canceled.
Element The dynamic property that represents the element.

Example

For an example before to DicomEditableObject

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.Dicom.Common requires a Document or Medical toolkit license and unlock key. For more information, refer to: Imaging Pro/Document/Medical Features