Condividi tramite


IVsCompoundAction.FlushEditActions Method

Updates the various text layers (outlining, word wrap, and so on) when called.

Namespace:  Microsoft.VisualStudio.TextManager.Interop
Assembly:  Microsoft.VisualStudio.TextManager.Interop (in Microsoft.VisualStudio.TextManager.Interop.dll)

Syntax

'Dichiarazione
Function FlushEditActions As Integer
'Utilizzo
Dim instance As IVsCompoundAction
Dim returnValue As Integer

returnValue = instance.FlushEditActions()
int FlushEditActions()
int FlushEditActions()
abstract FlushEditActions : unit -> int 
function FlushEditActions() : int

Return Value

Type: System.Int32
If the method succeeds, it returns S_OK. If it fails, it returns an error code.

Remarks

COM Signature

From textmgr.idl:

HRESULT IVsCompoundAction::FlushEditActions();

Typically, updates to the various text layers (outlining, word wrap, and so on) are left to the very end, when CloseCompoundAction is called. In this case, however, a client could make some changes and then call into the environment to retrieve the caret position before CloseCompoundAction is called. Because the text layers have not been updated, the environment would provide inaccurate information.

To avoid this problem, use FlushEditActions. When a client calls this method, the environment performs the updates that are done with CloseCompoundAction. These updates are also done in CloseCompoundAction.

.NET Framework Security

See Also

Reference

IVsCompoundAction Interface

IVsCompoundAction Members

Microsoft.VisualStudio.TextManager.Interop Namespace