Editing Operations
When XML data is displayed in Authentic View, it is possible to manipulate individual elements using the standard editing operations of cut, copy, and paste. However, not all the XML data elements may be edited. It is therefore necessary to first test whether editing is possible. The mechanism used is as follows: First, check whether the particular editing operation is enabled; if it is, then call the method to perform that editing operation. The only method that does not have a test is the method EditSelectAll, which automatically selects all elements displayed in the document.
The following is a list of properties and methods that perform editing operations. Each property returns a boolean value. The methods have no parameter.
IsEditUndoEnabled | Undo an editing operation | |
IsEditRedoEnabled | Redo an editing operation | |
IsEditCopyEnabled | Copy the selected text to the clipboard | |
IsEditCutEnabled | Cut the selected text to the clipboard | |
IsEditPasteEnabled | Paste clipboard text to current cursor position | |
IsEditClearEnabled | Clear the selected text from the XML document |