| Visual Basic (Declaration) | |
|---|---|
Public Event WindowLevelChanged As EventHandler(Of Medical3DWindowLevelEventArgs) | |
| Visual Basic (Usage) | Copy Code |
|---|---|
Dim instance As Medical3DControl Dim handler As EventHandler(Of Medical3DWindowLevelEventArgs) AddHandler instance.WindowLevelChanged, handler | |
| C# | |
|---|---|
public event EventHandler<Medical3DWindowLevelEventArgs> WindowLevelChanged | |
| C++/CLI | |
|---|---|
public: event EventHandler<Medical3DWindowLevelEventArgs^>^ WindowLevelChanged | |
The event handler receives an argument of type Medical3DWindowLevelEventArgs containing data related to this event. The following Medical3DWindowLevelEventArgs properties provide information specific to this event.
| Property | Description |
|---|---|
| Center | (Read only) Gets the window-level center value. |
| ObjectIndex | (Read only) Gets the index of the object being affected by the window-level action. |
| Width | (Read only) Gets the window-level width value. |
For an example refer to Center
To enable the Action, use the Leadtools.MedicalViewer.MedicalViewerBaseCell.AddAction(Leadtools.MedicalViewer.MedicalViewerActionType) method to add the action to the Medical3DControl. Then use the Leadtools.MedicalViewer.MedicalViewerBaseCell.SetAction(Leadtools.MedicalViewer.MedicalViewerActionType,Leadtools.MedicalViewer.MedicalViewerMouseButtons,Leadtools.MedicalViewer.MedicalViewerActionFlags) to associate the action with a mouse button.
Target Platforms: Microsoft .NET Framework 2.0, Windows 2000, Windows XP, Windows Server 2003 family, Windows Server 2008 family, Windows Vista, Windows 7
Copy Code