File: MS\Internal\Documents\UndoCloseAction.cs
Web Access
Project: src\src\Microsoft.DotNet.Wpf\src\PresentationFramework\PresentationFramework.csproj (PresentationFramework)
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
 
//
// Description: Enum for UndoManager.Close method.
//
 
using System;
 
namespace MS.Internal.Documents
{
    /// <summary>
    /// Specifies the type of change applied to TextContainer content.
    /// </summary>
    internal enum UndoCloseAction
    {
        /// <summary>
        /// Keep the open undo unit.
        /// </summary>
        Commit,
 
        /// <summary>
        /// Rollback the undo undo.  This calls unit.Do to undo the changes.
        /// </summary>
        Rollback,
 
        /// <summary>
        /// Throw away the undo unit without calling unit.Do.
        /// BE CAREFUL!  If the unit contains any changes that modified the
        /// state of the underlying content, the undo stack may be corrupt.
        /// </summary>
        Discard,
    }
}