ITextUndoHistoryRegistry::AttachHistory Method (Object^, ITextUndoHistory^)
Visual Studio 2015
Attaches an existing ITextUndoHistory to a text buffer. The buffer must not already be mapped in this registry.
Assembly: Microsoft.VisualStudio.Text.Logic (in Microsoft.VisualStudio.Text.Logic.dll)
Parameters
- context
-
Type:
System::Object^
This object should always be an ITextBuffer.
- history
-
Type:
Microsoft.VisualStudio.Text.Operations::ITextUndoHistory^
An ITextUndoHistory object to associate with the text buffer.
Only a weak reference is held to the buffer.
Show: