다음을 통해 공유


Source.OnChangeLineText Method

Called when a line's text has changed.

Namespace:  Microsoft.VisualStudio.Package
Assemblies:   Microsoft.VisualStudio.Package.LanguageService.9.0 (in Microsoft.VisualStudio.Package.LanguageService.9.0.dll)
  Microsoft.VisualStudio.Package.LanguageService (in Microsoft.VisualStudio.Package.LanguageService.dll)
  Microsoft.VisualStudio.Package.LanguageService.10.0 (in Microsoft.VisualStudio.Package.LanguageService.10.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
)
abstract OnChangeLineText : 
        lineChange:TextLineChange[] * 
        last:int -> unit 
override OnChangeLineText : 
        lineChange:TextLineChange[] * 
        last:int -> unit 
public function OnChangeLineText(
    lineChange : TextLineChange[], 
    last : int
)

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

Source Members

Microsoft.VisualStudio.Package Namespace