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 |
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.
Property | Description |
---|---|
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. |
For an example before to DicomEditableObject
Target Platforms: Microsoft .NET Framework 2.0, Windows 2000, Windows XP, Windows Server 2003 family, Windows Server 2008 family, Windows Vista, Windows 7