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.10.0 (in Microsoft.VisualStudio.Modeling.Sdk.10.0.dll)
Syntax
'Déclaration
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: System.Boolean
true if this is an undo operation; false if this is a redo operation.
- transactionItem
Type: Microsoft.VisualStudio.Modeling.TransactionItem
A TransactionItem identifying the transaction.
Return Value
Type: System.Boolean
Remarks
Add an instance to the UndoManager to vote on whether an undo or redo operation can continue.