ICSharpCode.TextEditor.TextEditorControl.Undo C# (CSharp) Метод

Undo() публичный Метод

public Undo ( ) : void
Результат void
		public void Undo()
		{
			if (Document.ReadOnly) {
				return;
			}
			if (Document.UndoStack.CanUndo) {
				BeginUpdate();
				Document.UndoStack.Undo();
				
				Document.RequestUpdate(new TextAreaUpdate(TextAreaUpdateType.WholeTextArea));
				this.primaryTextArea.TextArea.UpdateMatchingBracket();
				if (secondaryTextArea != null) {
					this.secondaryTextArea.TextArea.UpdateMatchingBracket();
				}
				EndUpdate();
			}
		}
		

Usage Example

Пример #1
0
 public void Undo()
 {
     _editor.Undo();
 }
All Usage Examples Of ICSharpCode.TextEditor.TextEditorControl::Undo