SetAnnotationEditorMode Method (GdViewer)
In This Topic
Turns on or off the "editing mode" for the GdPicture/XMP annotation support, that means allows to edit or to lock available GdPicture/XMP annotations
of the document displayed in the GdViewer control. The initial value is set to true.
Syntax
'Declaration
Public Sub SetAnnotationEditorMode( _
ByVal As Boolean _
)
public void SetAnnotationEditorMode(
bool
)
public procedure SetAnnotationEditorMode(
: Boolean
);
public function SetAnnotationEditorMode(
: boolean
);
public: void SetAnnotationEditorMode(
bool
)
public:
void SetAnnotationEditorMode(
bool
)
Parameters
- EditorMode
- Set this parameter to true to let users to edit available annotations of the displayed document.
Set this parameter to false to prevent available annotations from editing, in other words to lock them.
Example
How to enable or disable the annotations editing mode for GdPicture/XMP annotations.
'We assume that the GdViewer1 control has been properly integrated.
Sub buttonEnableEditing_Click(ByVal sender As Object, ByVal e As EventArgs)
GdViewer1.SetAnnotationEditorMode(True)
End Sub
Sub buttonDisableEditing_Click(ByVal sender As Object, ByVal e As EventArgs)
GdViewer1.SetAnnotationEditorMode(False)
End Sub
//We assume that the GdViewer1 control has been properly integrated.
void buttonEnableEditing_Click(object sender, EventArgs e)
{
GdViewer1.SetAnnotationEditorMode(true);
}
void buttonDisableEditing_Click(object sender, EventArgs e)
{
GdViewer1.SetAnnotationEditorMode(false);
}
Example
How to enable or disable the annotations editing mode for GdPicture/XMP annotations.
'We assume that the GdViewer1 control has been properly integrated.
Sub buttonEnableEditing_Click(ByVal sender As Object, ByVal e As EventArgs)
GdViewer1.SetAnnotationEditorMode(True)
End Sub
Sub buttonDisableEditing_Click(ByVal sender As Object, ByVal e As EventArgs)
GdViewer1.SetAnnotationEditorMode(False)
End Sub
//We assume that the GdViewer1 control has been properly integrated.
void buttonEnableEditing_Click(object sender, EventArgs e)
{
GdViewer1.SetAnnotationEditorMode(true);
}
void buttonDisableEditing_Click(object sender, EventArgs e)
{
GdViewer1.SetAnnotationEditorMode(false);
}
See Also