AvalonStudio.TextEditor.Document.UndoStack.StartContinuedUndoGroup C# (CSharp) Method

StartContinuedUndoGroup() public method

Starts grouping changes, continuing with the previously closed undo group if possible. Maintains a counter so that nested calls are possible. If the call to StartContinuedUndoGroup is a nested call, it behaves exactly as StartUndoGroup(), only top-level calls can continue existing undo groups.
public StartContinuedUndoGroup ( object groupDescriptor = null ) : void
groupDescriptor object /// An object that is stored with the undo group. /// If this is not a top-level undo group, the parameter is ignored. ///
return void
		public void StartContinuedUndoGroup(object groupDescriptor = null)
		{
			if (undoGroupDepth == 0)
			{
				actionCountInUndoGroup = allowContinue && undostack.Count > 0 ? 1 : 0;
				optionalActionCount = 0;
				LastGroupDescriptor = groupDescriptor;
			}
			undoGroupDepth++;
			//Util.LoggingService.Debug("Continue undo group (new depth=" + undoGroupDepth + ")");
		}