This property sets whether or not the context menu is enabled when editing and an annotation object is right clicked.

[Visual Basic] Public Property ContextMenuEnable As Boolean
[C#] public bool ContextMenuEnable {get; set;}

Property Value

True: Right clicking displays the ImageKit standard context menu

False Right clicking does not display the ImageKit standard context menu

Default value is True

Explanation

The ContextMenuEnable property sets whether or not the context menu is enabled when editing and an annotation object is right clicked.

When the ContextMenuEnable property is True, right clicking on the annotation object displays the ImageKit standard context menu. This context menu allows a variety of functions to be performed. When the ContextMenuEnable property is False, the ImageKit standard context menu is disabled. This is useful if you want to create your own custom context menu, which you set into the ImageKit control using the ContextMenuStrip property.

The following functions can be performed using the ImageKit control's standard context menu:

Select All / Delete All: All drawn objects can be selected / deleted. This is enabled when the EditKind property is set to KindOfEdit.MultiSelect.

Delete: Single selected objects, multiple selected objects, and all objects can be deleted. This is enabled when the EditKind property is set to KindOfEdit.Select or to KindOfEdit.MultiSelect and at least one object has been selected.

Cut: Single selected objects, multiple selected objects, and all objects can be cut. This is enabled when the EditKind property is set to KindOfEdit.Select or to KindOfEdit.MultiSelect and at least one object has been selected.

Copy: Single selected objects, multiple selected objects, and all objects can be copied. This is enabled when the EditKind property is set to KindOfEdit.Select or to KindOfEdit.MultiSelect and at least one object has been selected.

Paste: Any objects that have been cut or copied can be pasted. This is enabled when the EditKind property is set to KindOfEdit.Select or to KindOfEdit.MultiSelect and at least one object has been copied. Note that the location of the right-click that caused the context menu to be displayed is the location where the objects will be pasted.

MoveForwardOne: Moves the selected object's Z-Order value forward one. This is enabled when the EditKind property is set to KindOfEdit.Select.

MoveBackOne: Moves the selected object's Z-Order value back one. This is enabled when the EditKind property is set to KindOfEdit.Select.

MoveToFront: Moves the selected object to the front (changes the object's Z-Order value to be the largest value). This is enabled when the EditKind property is set to KindOfEdit.Select.

MoveToBack: Moves the selected object to the back (changes the object's Z-Order value to be the smallest value). This is enabled when the EditKind property is set to KindOfEdit.Select.

Undo: Removes the last change to an annotation object and returns it to the previous state prior to the change. This is enabled when the UndoMax property has a value set.

Redo: Removes the last undo step returning the annotation object to the state prior to the last Undo. This is enabled for the number of undo steps that have occurred.

Properties: Displays a dialog that allows the selected object's properties to be changed. This is enabled when the EditKind property is set to KindOfEdit.Select.

Annotations can still be made even though the ContextMenuEnable property is False and right clicking does not display the context menu.
This can be done with the following methods:

SelectAllObjects
DeleteSelectedObject
CopySelectedObjects
CutSelectedObjects
PasteCopiedObjects
MoveForwardOne
MoveBackOne
MoveToFront
MoveToBack
Undo
Redo
ShowPropertyDialog

Also See

ImageKit.Edit Members | Newtone.ImageKit.Wpf.ImageKit

 

The ImageKit WPF is created by Newtone Corporation