GdPicture.NET Reference Guide
RegionEditedByUser Event (GdViewer)
Example 





GdPicture14 Namespace > GdViewer Class : RegionEditedByUser Event
This event is raised when a highlighted region has been moved or resized, which actually means edited, by a user using the mouse.

Please check the corresponded GdViewer.RegionEditedByUserEventHandler for given parameters.

Highlighted regions for currently displayed document are identified and created when searching text, for example using the SearchText(String,Int32,Boolean) method or the second similar overloaded method as well. You can also define highlighted regions directly using AddRegion(String,Int32,Int32,Int32,Int32,ForegroundMixMode,Color) or AddRegionInches(String,Single,Single,Single,Single,ForegroundMixMode,Color) methods.

Syntax
'Declaration
 
Public Event RegionEditedByUser As GdViewer.RegionEditedByUserEventHandler
public event GdViewer.RegionEditedByUserEventHandler RegionEditedByUser
public event RegionEditedByUser: GdViewer.RegionEditedByUserEventHandler; 
In JScript, you can handle the events defined by another class, but you cannot define your own.
public: __event GdViewer.RegionEditedByUserEventHandler* RegionEditedByUser
public:
event GdViewer.RegionEditedByUserEventHandler^ RegionEditedByUser
Remarks
Be aware that the RegionsAreEditable property needs to be turned on to enable region editing.
Example
How to add this event to your GdViewer control.
'We assume that the GdViewer1 control has been properly integrated.
Friend WithEvents GdViewer1 As GdPicture14.GdViewer
 
'Add the event.
AddHandler GdViewer1.RegionEditedByUser, AddressOf GdViewer1_RegionEditedByUser
 
'Define the event.
Sub GdViewer1_RegionEditedByUser(ByVal RegionID As Integer) Handles GdViewer1.RegionEditedByUser
    'Do your stuff here.
End Sub
//We assume that the GdViewer1 control has been properly integrated.
 
//Add the event.
GdViewer1.RegionEditedByUser += GdViewer1_RegionEditedByUser;
 
//Define the event.
void GdViewer1_RegionEditedByUser(int RegionID)
{
    //Do your stuff here.
}
See Also

Reference

GdViewer Class
GdViewer Members
GdViewer.RegionEditedByUserEventHandler Delegate
RegionMovedByUser Event
RegionResizedByUser Event
RegionSelectedByUser Event
RegionsAreEditable Property