This property sets whether or not the context menu is enabled when an annotation object is right clicked.
Property Value
True: Right clicking displays the context menu
False Right clicking does not display the context menu
Default value is True
Explanation
The ContextMenuEnable property sets whether or not the context menu is enabled when an annotation object is right clicked.
When editing and annotating images, right clicking on the annotation objects displays the context menu which allows a variety of functions to be performed. The following functions can be performed using the 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.
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 are 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
DeleteMultiSelectedObjects
CopySelectedObjects
PasteCopiedObjects
MoveForwardOne
MoveBackOne
MoveToFront
MoveToBack
Undo
Redo
ShowPropertyDialog
Also See
ImageKit.Edit Members | Newtone.ImageKit.Win.ImageKit