Source.OnChangesCommitted Method
Called when a code snippet is committed to the source file.
Namespace: Microsoft.VisualStudio.Package
Assemblies: Microsoft.VisualStudio.Package.LanguageService (in Microsoft.VisualStudio.Package.LanguageService.dll)
Microsoft.VisualStudio.Package.LanguageService.9.0 (in Microsoft.VisualStudio.Package.LanguageService.9.0.dll)
Syntax
'Declaración
Public Overridable Sub OnChangesCommitted ( _
reason As UInteger, _
changedArea As TextSpan() _
)
public virtual void OnChangesCommitted(
uint reason,
TextSpan[] changedArea
)
Parameters
- reason
Type: System.UInt32
A value from the ChangeCommitGestureFlags enumeration describing why the change was committed.
- changedArea
Type: array<Microsoft.VisualStudio.TextManager.Interop.TextSpan[]
A TextSpan object describing the total area that was changed.
Implements
IVsFinalTextChangeCommitEvents.OnChangesCommitted(UInt32, array<TextSpan[])
Remarks
This method is an implementation of IVsFinalTextChangeCommitEvents' OnChangesCommitted method.
The base method adds the span to the dirty span list.
.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.