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)

int FlushEditActions()

Return Value

Type: System::Int32

If the method succeeds, it returns S_OK. If it fails, it returns an error code.

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.

Return to top
Show: