Source.OnChangeLineText Method
Called when a line's text has changed.
Namespace: Microsoft.VisualStudio.Package
Assemblies: Microsoft.VisualStudio.Package.LanguageService.12.0 (in Microsoft.VisualStudio.Package.LanguageService.12.0.dll)
Microsoft.VisualStudio.Package.LanguageService.10.0 (in Microsoft.VisualStudio.Package.LanguageService.10.0.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)
Microsoft.VisualStudio.Package.LanguageService (in Microsoft.VisualStudio.Package.LanguageService.dll)
Syntax
'Declaration
Public Overridable Sub OnChangeLineText ( _
lineChange As TextLineChange(), _
last As Integer _
)
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: Int32Nonzero 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.