GdPicture.NET.14
GdPicture14 Namespace / GdViewer Class / RegionResizedByUser Event
Example





In This Topic
RegionResizedByUser Event (GdViewer)
In This Topic
This event is raised when a highlighted region has been resized by a user using the mouse.

Please check the corresponded GdViewer.RegionResizedByUserEventHandler 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,Int32) or AddRegionInches(String,Single,Single,Single,Single,ForegroundMixMode,Int32) methods.

Syntax
'Declaration
 
Public Event RegionResizedByUser As GdViewer.RegionResizedByUserEventHandler
public event GdViewer.RegionResizedByUserEventHandler RegionResizedByUser
public event RegionResizedByUser: GdViewer.RegionResizedByUserEventHandler; 
In JScript, you can handle the events defined by another class, but you cannot define your own.
public: __event GdViewer.RegionResizedByUserEventHandler* RegionResizedByUser
public:
event GdViewer.RegionResizedByUserEventHandler^ RegionResizedByUser
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.RegionResizedByUser, AddressOf GdViewer1_RegionResizedByUser
            
'Define the event.
Sub GdViewer1_RegionResizedByUser(ByVal RegionID As Integer) Handles GdViewer1.RegionResizedByUser
    'Do your stuff here.
End Sub
//We assume that the GdViewer1 control has been properly integrated.
            
//Add the event.
GdViewer1.RegionResizedByUser += GdViewer1_RegionResizedByUser;
            
//Define the event.
void GdViewer1_RegionResizedByUser(int RegionID)
{
    //Do your stuff here.
}
See Also