Reference Guide
GdPicture14.WPF Namespace / GdViewer Class / PreviewRegionEdited Event

In This Topic
    PreviewRegionEdited Event
    In This Topic
    This event is raised when a highlighted region has been moved or resized, which actually means edited, by a user using the mouse.

    The event makes use of tunel routing strategy. Please check the corresponded GdViewer.RegionEditedEventArgs 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 the AddRegion(String,Double,Double,Double,Double,Color,RegionFillMode) method.

    Public Event PreviewRegionEdited As GdViewer.PreviewRegionEditedHandler
    public event GdViewer.PreviewRegionEditedHandler PreviewRegionEdited
    public event PreviewRegionEdited: GdViewer.PreviewRegionEditedHandler; 
    In JScript, you can handle the events defined by another class, but you cannot define your own.
    public: __event GdViewer.PreviewRegionEditedHandler* PreviewRegionEdited
    event GdViewer.PreviewRegionEditedHandler^ PreviewRegionEdited
    Event Data

    The event handler receives an argument of type GdViewer.RegionEditedEventArgs containing data related to this event. The following GdViewer.RegionEditedEventArgs properties provide information specific to this event.

    (Inherited from System.Windows.RoutedEventArgs)
    (Inherited from System.Windows.RoutedEventArgs)
    The unique region identifier of the highlighted region edited by a user.  
    (Inherited from System.Windows.RoutedEventArgs)
    (Inherited from System.Windows.RoutedEventArgs)
    Be aware that the RegionsAreEditable property needs to be turned on to enable region editing.
    Please follow the example for the RegionEdited event to motivate yourself on how to utilize this event in your GdViewer control.
    See Also