ITextUndoHistoryRegistry.TryGetHistory Method

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)

Syntax

'Declaration
Function TryGetHistory ( _
    context As Object, _
    <OutAttribute> ByRef history As ITextUndoHistory _
) As Boolean
bool TryGetHistory(
    Object context,
    out ITextUndoHistory history
)
bool TryGetHistory(
    Object^ context, 
    [OutAttribute] ITextUndoHistory^% history
)
abstract TryGetHistory : 
        context:Object * 
        history:ITextUndoHistory byref -> bool
function TryGetHistory(
    context : Object, 
    history : ITextUndoHistory
) : boolean

Parameters

  • context
    Type: Object

    This object should always be an ITextBuffer.

Return Value

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

.NET Framework Security

See Also

Reference

ITextUndoHistoryRegistry Interface

Microsoft.VisualStudio.Text.Operations Namespace