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

 

Gets a history associated with the text buffer, but does not create a new one.

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

bool TryGetHistory(
	Object^ context,
	[OutAttribute] ITextUndoHistory^% history
)

Parameters

context
Type: System::Object^

This object should always be an ITextBuffer.

history
Type: Microsoft.VisualStudio.Text.Operations::ITextUndoHistory^

[out] An ITextUndoHistory associated with the text buffer.

Return Value

Type: System::Boolean

true if there is an undo history associated with the specified text buffer, otherwise false.

Return to top
Show: