Source.OnChangeLineText Method

Called when a line's text has changed.

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

Syntax

'宣言
Public Overridable Sub OnChangeLineText ( _
    lineChange As TextLineChange(), _
    last As Integer _
)
'使用
Dim instance As Source
Dim lineChange As TextLineChange()
Dim last As Integer

instance.OnChangeLineText(lineChange, _
    last)
public virtual void OnChangeLineText(
    TextLineChange[] lineChange,
    int last
)
public:
virtual void OnChangeLineText(
    array<TextLineChange>^ lineChange, 
    int last
)
public function OnChangeLineText(
    lineChange : TextLineChange[], 
    last : int
)

Parameters

  • lineChange
    Type: []

    The TextLineChange object that describes the line that was changed.

  • last
    Type: System.Int32

    Nonzero if the last line of the source is included in the change; otherwise, this is zero.

Implements

IVsTextLinesEvents.OnChangeLineText([], 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.

Permissions

See Also

Reference

Source Class

Source Members

Microsoft.VisualStudio.Package Namespace