共用方式為


ITextUndoTransaction.Cancel Method

Marks an open transaction as canceled, and undoes and clears any undo primitives that have been added.

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

Syntax

'宣告
Sub Cancel
void Cancel()
void Cancel()
abstract Cancel : unit -> unit 
function Cancel()

.NET Framework Security

See Also

Reference

ITextUndoTransaction Interface

Microsoft.VisualStudio.Text.Operations Namespace