Compartir a través de


Source.OnChangeLineText Method

Called when a line's text has changed.

Namespace:  Microsoft.VisualStudio.Package
Assemblies:   Microsoft.VisualStudio.Package.LanguageService.10.0 (in Microsoft.VisualStudio.Package.LanguageService.10.0.dll)
  Microsoft.VisualStudio.Package.LanguageService (in Microsoft.VisualStudio.Package.LanguageService.dll)
  Microsoft.VisualStudio.Package.LanguageService.11.0 (in Microsoft.VisualStudio.Package.LanguageService.11.0.dll)
  Microsoft.VisualStudio.Package.LanguageService.9.0 (in Microsoft.VisualStudio.Package.LanguageService.9.0.dll)

Syntax

'Declaración
Public Overridable Sub OnChangeLineText ( _
    lineChange As TextLineChange(), _
    last As Integer _
)
public virtual void OnChangeLineText(
    TextLineChange[] lineChange,
    int last
)

Parameters

  • last
    Type: System.Int32
    Nonzero if the last line of the source is included in the change; otherwise, this is zero.

Implements

IVsTextLinesEvents.OnChangeLineText(array<TextLineChange[], Int32)

Remarks

This method is called when one or more lines are changed in a single operation.

This method is an implementation of IVsTextLinesEvents' OnChangeLineText method.

The base method adds the changed line span to the dirty spans list.

.NET Framework Security

See Also

Reference

Source Class

Microsoft.VisualStudio.Package Namespace