In This Topic
Syntax
'Declaration
<SRCategoryAttribute("CatLayout")>
<SRDescriptionAttribute("ControlOnMarginChangedDescr")>
Public Event MarginChanged As System.EventHandler
'Usage
Dim instance As DicomViewer
Dim handler As System.EventHandler
AddHandler instance.MarginChanged, handler
[SRCategory("CatLayout")]
[SRDescription("ControlOnMarginChangedDescr")]
public event System.EventHandler MarginChanged
public event MarginChanged: System.EventHandler;
In JScript, you can handle the events defined by another class, but you cannot define your own.
[SRCategory("CatLayout")]
[SRDescription("ControlOnMarginChangedDescr")]
public: __event System.EventHandler* MarginChanged
[SRCategory("CatLayout")]
[SRDescription("ControlOnMarginChangedDescr")]
public:
event System.EventHandler^ MarginChanged
Requirements
Target Platforms: .NET CLR 4.8 or higher
See Also