다음을 통해 공유


IVsChangeTrackingUndoManager Interface

Provides undo management for an editor that supports multiple views.

Namespace:  Microsoft.VisualStudio.TextManager.Interop
Assembly:  Microsoft.VisualStudio.TextManager.Interop (in Microsoft.VisualStudio.TextManager.Interop.dll)

Syntax

‘선언
<GuidAttribute("E33C4DCF-F50C-4356-8CD8-87A7F213337B")> _
<InterfaceTypeAttribute()> _
Public Interface IVsChangeTrackingUndoManager
[GuidAttribute("E33C4DCF-F50C-4356-8CD8-87A7F213337B")]
[InterfaceTypeAttribute()]
public interface IVsChangeTrackingUndoManager
[GuidAttribute(L"E33C4DCF-F50C-4356-8CD8-87A7F213337B")]
[InterfaceTypeAttribute()]
public interface class IVsChangeTrackingUndoManager
[<GuidAttribute("E33C4DCF-F50C-4356-8CD8-87A7F213337B")>]
[<InterfaceTypeAttribute()>]
type IVsChangeTrackingUndoManager =  interface end
public interface IVsChangeTrackingUndoManager

The IVsChangeTrackingUndoManager type exposes the following members.

Methods

  Name Description
Public method AdviseTrackingClient Advises the Undo Manager that you want to receive notification when the document is clean.
Public method MarkCleanState Tells the Undo Manager that an unmodified state has been reached, for example, following a Save operation.
Public method QueryCleanState Determines whether the document is in an unmodified state.
Public method UnadviseTrackingClient Advises the Undo Manager that you no longer want to receive notification of when the document is clean.

Top

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 to receive notification from the undo manager of when the document is clean following an undo action.

See Also

Reference

Microsoft.VisualStudio.TextManager.Interop Namespace