Udostępnij za pośrednictwem


SnapshotLineTransform Delegate

Definition

A custom transform for text snapshot lines, to allow clients of IDifferenceBuffer to modify lines before performing any comparison.

public delegate System::String ^ SnapshotLineTransform(ITextSnapshotLine ^ line, System::String ^ currentText);
public delegate Platform::String ^ SnapshotLineTransform(ITextSnapshotLine ^ line, Platform::String ^ currentText);
public delegate string SnapshotLineTransform(ITextSnapshotLine line, string currentText);
type SnapshotLineTransform = delegate of ITextSnapshotLine * string -> string
Public Delegate Function SnapshotLineTransform(line As ITextSnapshotLine, currentText As String) As String 

Parameters

line
ITextSnapshotLine

The original snapshot line that this transform is being asked to operate on.

currentText
String

The current text of the line, which may differ from GetText() if an earlier transform has already processed the line.

Return Value

The new line text to use for the line.

Applies to