'Declaration
Public Event RegionSelected As GdViewer.RegionSelectedHandler
public event GdViewer.RegionSelectedHandler RegionSelected
public event RegionSelected: GdViewer.RegionSelectedHandler;
In JScript, you can handle the events defined by another class, but you cannot define your own.
public: __event GdViewer.RegionSelectedHandler* RegionSelected
public: event GdViewer.RegionSelectedHandler^ RegionSelected
Event Data
The event handler receives an argument of type GdViewer.RegionSelectedEventArgs containing data related to this event. The following GdViewer.RegionSelectedEventArgs properties provide information specific to this event.
Property | Description |
---|---|
Handled | (Inherited from System.Windows.RoutedEventArgs) |
OriginalSource | (Inherited from System.Windows.RoutedEventArgs) |
RegionID | The unique region identifier of the highlighted region selected by a user. |
RoutedEvent | (Inherited from System.Windows.RoutedEventArgs) |
Source | (Inherited from System.Windows.RoutedEventArgs) |
Remarks
Be aware that the RegionsAreEditable property needs to be turned on to enable the region selection.
Example
How to utilize this event in your GdViewer control.
'We assume that the GdViewer1 control has been properly integrated 'and the RegionSelected event has been properly added. 'Define the event. Sub GdViewer1_RegionSelected(ByVal sender As Object, ByVal e As GdPicture14.WPF.GdViewer.RegionSelectedEventArgs) 'Do your stuff here. End Sub
//We assume that the GdViewer1 control has been properly integrated //and the RegionSelected event has been properly added. //Define the event. void GdViewer1_RegionSelected(object sender, GdPicture14.WPF.GdViewer.RegionSelectedEventArgs e) { //Do your stuff here. }
See Also