GdPicture.NET.14
GdPicture14 Namespace / GdViewer Class / TerminateLastAnnotInteractiveAdd Method
Example





In This Topic
TerminateLastAnnotInteractiveAdd Method (GdViewer)
In This Topic
Asks the GdViewer control to terminate the ongoing interactive annotation creation.

This method only works when the editing mode for annotations is enabled; otherwise, the method will fail.

Syntax
'Declaration
 
Public Function TerminateLastAnnotInteractiveAdd() As GdPictureStatus
public GdPictureStatus TerminateLastAnnotInteractiveAdd()
public function TerminateLastAnnotInteractiveAdd(): GdPictureStatus; 
public function TerminateLastAnnotInteractiveAdd() : GdPictureStatus;
public: GdPictureStatus TerminateLastAnnotInteractiveAdd(); 
public:
GdPictureStatus TerminateLastAnnotInteractiveAdd(); 

Return Value

A member of the GdPictureStatus enumeration.
Remarks

The method only handles GdPicture/XMP annotations as well.

Be aware that annotations are always treated relative to the currently displayed page.

Example
How to terminate the last added annotation.
'We assume that the GdViewer1 control has been properly integrated.
Sub buttonStoplAnnot_Click(ByVal sender As Object, ByVal e As EventArgs)
    GdViewer1.TerminateLastAnnotInteractiveAdd()
End Sub
//We assume that the GdViewer1 control has been properly integrated.
void buttonStopAnnot_Click(object sender, EventArgs e)
{
    GdViewer1.TerminateLastAnnotInteractiveAdd();
}
See Also