Partager via


IVsFinalTextChangeCommitEvents.OnChangesCommitted Method

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)

Syntax

'Declaration
Sub OnChangesCommitted ( _
    dwGestureFlags As UInteger, _
    ptsChanged As TextSpan() _
)
void OnChangesCommitted(
    uint dwGestureFlags,
    TextSpan[] ptsChanged
)
void OnChangesCommitted(
    [InAttribute] unsigned int dwGestureFlags, 
    [InAttribute] array<TextSpan>^ ptsChanged
)
abstract OnChangesCommitted : 
        dwGestureFlags:uint32 * 
        ptsChanged:TextSpan[] -> unit
function OnChangesCommitted(
    dwGestureFlags : uint, 
    ptsChanged : TextSpan[]
)

Parameters

Remarks

COM Signature

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.

Note

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.

.NET Framework Security

See Also

Reference

IVsFinalTextChangeCommitEvents Interface

Microsoft.VisualStudio.TextManager.Interop Namespace