GdPicture.NET Reference Guide
CancelLastAnnotInteractiveAdd Method (GdViewer)

GdPicture14.WPF Namespace > GdViewer Class : CancelLastAnnotInteractiveAdd Method
Asks the GdViewer control to ignore the latest request of an interactive annotation creation. In other words, the lastly added annotation is removed.

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

Public Sub CancelLastAnnotInteractiveAdd() 
public void CancelLastAnnotInteractiveAdd()
public procedure CancelLastAnnotInteractiveAdd(); 
public function CancelLastAnnotInteractiveAdd();
public: void CancelLastAnnotInteractiveAdd(); 
void CancelLastAnnotInteractiveAdd(); 
We strongly recommend using the GetStat method to identify the specific reason for the method's failure.

Please note that this method expects to have the GdPicture XMP/Annotations Plugin to be unlocked. The method only handles GdPicture/XMP annotations as well.

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

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)
End Sub
//We assume that the GdViewer1 control has been properly integrated.
void buttonCancelAnnot_Click(object sender, EventArgs e)
See Also


GdViewer Class
GdViewer Members
GetAnnotationCount Method
GetAnnotationManager Method
DeleteAnnotation Method