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
- lineChange
Type: array<Microsoft.VisualStudio.TextManager.Interop.TextLineChange[]
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(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
- 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.