IVsFinalTextChangeCommitEvents::OnChangesCommitted Method (UInt32, array<TextSpan>^)

 

Notifies clients of the last commit gesture to trigger the event and provide the range of text changed.

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

void OnChangesCommitted(
	unsigned int dwGestureFlags,
	array<TextSpan>^ ptsChanged
)

Parameters

dwGestureFlags
Type: System::UInt32

[in] Flags indicating the type of changes made. For a list of dwGestureFlags values, see ChangeCommitGestureFlags.

ptsChanged
Type: array<Microsoft.VisualStudio.TextManager.Interop::TextSpan>^

[in] Span of text modified.

From textmgr.idl:

HRESULT IVsFinalTextChangeCommitEvents::OnChangesCommitted(
   [in] DWORD dwGestureFlags,
   [in] TextSpan *ptsChanged
);

This method is used by language services or other parties that have complete control over the editing experience and are the only intended client.

System_CAPS_noteNote

When IVsFinalTextChangeCommitEvents is called by the environment it gets fired before other events such as Pretty Listing in Visual Basic. This is to ensure that the language service can update the text before other events change it.

Return to top
Show: