Source.OnChangesCommitted Method

Called when a code snippet is committed to the source file.

Namespace:  Microsoft.VisualStudio.Package
Assembly:  Microsoft.VisualStudio.Package.LanguageService.9.0 (in Microsoft.VisualStudio.Package.LanguageService.9.0.dll)

Syntax

'宣言
Public Overridable Sub OnChangesCommitted ( _
    reason As UInteger, _
    changedArea As TextSpan() _
)
'使用
Dim instance As Source
Dim reason As UInteger
Dim changedArea As TextSpan()

instance.OnChangesCommitted(reason, changedArea)
public virtual void OnChangesCommitted(
    uint reason,
    TextSpan[] changedArea
)
public:
virtual void OnChangesCommitted(
    unsigned int reason, 
    array<TextSpan>^ changedArea
)
public function OnChangesCommitted(
    reason : uint, 
    changedArea : TextSpan[]
)

Parameters

  • changedArea
    Type: []

    A TextSpan object describing the total area that was changed.

Implements

IVsFinalTextChangeCommitEvents.OnChangesCommitted(UInt32, [])

Remarks

This method is an implementation of IVsFinalTextChangeCommitEvents' OnChangesCommitted method.

The base method adds the span to the dirty span list.

Permissions

See Also

Reference

Source Class

Source Members

Microsoft.VisualStudio.Package Namespace