ITextUndoHistoryRegistry::AttachHistory Method (Object^, ITextUndoHistory^)

 

Attaches an existing ITextUndoHistory to a text buffer. The buffer must not already be mapped in this registry.

Namespace:   Microsoft.VisualStudio.Text.Operations
Assembly:  Microsoft.VisualStudio.Text.Logic (in Microsoft.VisualStudio.Text.Logic.dll)

void AttachHistory(
	Object^ context,
	ITextUndoHistory^ history
)

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.

Return to top
Show: