SnapshotLineTransform Delegate
A custom transform for text snapshot lines, to allow clients of IDifferenceBuffer to modify lines before performing any comparison.
line: The original snapshot line that this transform is being asked to operate on.</
currentText: The current text of the line, which may differ from GetText" if an earlier transform has already processed the line.
Returns the new line text to use for the line.
Namespace: Microsoft.VisualStudio.Text.Differencing
Assembly: Microsoft.VisualStudio.Text.Logic (in Microsoft.VisualStudio.Text.Logic.dll)
Syntax
'Declaration
Public Delegate Function SnapshotLineTransform ( _
line As ITextSnapshotLine, _
currentText As String _
) As String
public delegate string SnapshotLineTransform(
ITextSnapshotLine line,
string currentText
)
public delegate String^ SnapshotLineTransform(
ITextSnapshotLine^ line,
String^ currentText
)
type SnapshotLineTransform =
delegate of
line:ITextSnapshotLine *
currentText:string -> string
JScript does not support delegates.
Parameters
- currentText
Type: String
Return Value
Type: String