C# Class Microsoft.Languages.Editor.Text.TextUtility

Afficher le fichier Open project: Microsoft/RTVS

Méthodes publiques

Méthode Description
CombineChanges ( TextContentChangedEventArgs e, int &start, int &oldLength, int &newLength ) : void

Combines multiple changes into one larger change.

ConvertToRelative ( this changeInfo ) : IReadOnlyList

Converts list of text changes in a text buffer to a collection of changes that are relative one to another.

Method Details

CombineChanges() public static méthode

Combines multiple changes into one larger change.
public static CombineChanges ( TextContentChangedEventArgs e, int &start, int &oldLength, int &newLength ) : void
e TextContentChangedEventArgs Text buffer change event argument
start int Combined span start
oldLength int Length of the change in the original buffer state
newLength int Length of the change in the new buffer state
Résultat void

ConvertToRelative() public static méthode

Converts list of text changes in a text buffer to a collection of changes that are relative one to another.
public static ConvertToRelative ( this changeInfo ) : IReadOnlyList
changeInfo this
Résultat IReadOnlyList