Example





In This Topic
GdPicture14.WPF Namespace / GdViewer Class / CancelLastAnnotInteractiveAdd Method

CancelLastAnnotInteractiveAdd Method (GdViewer)

In This Topic
Asks the GdViewer control to ignore the latest request of an interactive annotation creation.

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

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

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 cancel the last added annotation.
'We assume that the GdViewer1 control has been properly integrated.
Sub buttonCancelAnnot_Click(ByVal sender As Object, ByVal e As EventArgs)
    GdViewer1.CancelLastAnnotInteractiveAdd()
End Sub
//We assume that the GdViewer1 control has been properly integrated.
void buttonCancelAnnot_Click(object sender, EventArgs e)
{
    GdViewer1.CancelLastAnnotInteractiveAdd();
}
See Also