次の方法で共有


IVsChangeTrackingUndoManager Interface

Definition

Provides undo management for an editor that supports multiple views.

public interface class IVsChangeTrackingUndoManager
public interface class IVsChangeTrackingUndoManager
__interface IVsChangeTrackingUndoManager
[System.Runtime.InteropServices.Guid("E33C4DCF-F50C-4356-8CD8-87A7F213337B")]
[System.Runtime.InteropServices.InterfaceType(1)]
public interface IVsChangeTrackingUndoManager
[System.Runtime.InteropServices.Guid("E33C4DCF-F50C-4356-8CD8-87A7F213337B")]
[System.Runtime.InteropServices.InterfaceType(System.Runtime.InteropServices.ComInterfaceType.InterfaceIsIUnknown)]
public interface IVsChangeTrackingUndoManager
[<System.Runtime.InteropServices.Guid("E33C4DCF-F50C-4356-8CD8-87A7F213337B")>]
[<System.Runtime.InteropServices.InterfaceType(1)>]
type IVsChangeTrackingUndoManager = interface
[<System.Runtime.InteropServices.Guid("E33C4DCF-F50C-4356-8CD8-87A7F213337B")>]
[<System.Runtime.InteropServices.InterfaceType(System.Runtime.InteropServices.ComInterfaceType.InterfaceIsIUnknown)>]
type IVsChangeTrackingUndoManager = interface
Public Interface IVsChangeTrackingUndoManager
Attributes

Remarks

IVsChangeTrackingUndoManager allows you to remove the asterisk in the title bar, which indicates that the document has been changed, or is dirty. For example, a user opens a document, types a character and hits undo. If you do not use IVsChangeTrackingUndoManager, the document remains dirty and does not revert to the clean state.

Notes to Callers

Call this interface to receive notification of when a document returns to the clean state.

To obtain a pointer to IVsChangeTrackingUndoManager, call QueryInterface on IOleUndoManager for IID_IVsChangeTrackingUndoManager. Call AdviseTrackingClient(IVsUndoTrackingEvents) to receive notification from the undo manager of when the document is clean following an undo action.

Methods

AdviseTrackingClient(IVsUndoTrackingEvents)

Advises the Undo Manager that you want to receive notification when the document is clean.

MarkCleanState()

Tells the Undo Manager that an unmodified state has been reached, for example, following a Save operation.

QueryCleanState(Int32)

Determines whether the document is in an unmodified state.

UnadviseTrackingClient()

Advises the Undo Manager that you no longer want to receive notification of when the document is clean.

Applies to