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
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.
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
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.