Bagikan melalui


CanUndoRedoCallback Delegate

Add an instance to the UndoManager to vote on whether an undo or redo operation can continue.

Namespace:  Microsoft.VisualStudio.Modeling
Assembly:  Microsoft.VisualStudio.Modeling.Sdk.11.0 (in Microsoft.VisualStudio.Modeling.Sdk.11.0.dll)

Syntax

'Declaration
Public Delegate Function CanUndoRedoCallback ( _
    isUndo As Boolean, _
    transactionItem As TransactionItem _
) As Boolean
public delegate bool CanUndoRedoCallback(
    bool isUndo,
    TransactionItem transactionItem
)
public delegate bool CanUndoRedoCallback(
    bool isUndo, 
    TransactionItem^ transactionItem
)
type CanUndoRedoCallback = 
    delegate of  
        isUndo:bool * 
        transactionItem:TransactionItem -> bool
JScript does not support delegates.

Parameters

  • isUndo
    Type: Boolean

    true if this is an undo operation; false if this is a redo operation.

Return Value

Type: Boolean

Remarks

Add an instance to the UndoManager to vote on whether an undo or redo operation can continue.

See Also

Reference

Microsoft.VisualStudio.Modeling Namespace