ITextUndoHistoryRegistry.AttachHistory Method

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.

Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2015 Microsoft