C# Класс Microsoft.Languages.Editor.Text.IncrementalTextChangeApplication

Показать файл Открыть проект

Открытые методы

Метод Описание
ApplyChange ( ITextBuffer textBuffer, int position, int length, string newText, string transactionName, ISelectionTracker selectionTracker, int maxMilliseconds ) : void
ApplyChangeByTokens ( ITextBuffer textBuffer, ITextProvider oldTextProvider, ITextProvider newTextProvider, IReadOnlyList oldTokens, IReadOnlyList newTokens, ITextRange formatRange, string transactionName, ISelectionTracker selectionTracker, IEditorShell editorShell, System.Action additionalAction = null ) : void

Incrementally applies whitespace change to the buffer having old and new tokens produced from the 'before formatting' and 'after formatting' versions of the same text.

Приватные методы

Метод Описание
CreateSelectionUndo ( ISelectionTracker selectionTracker, IEditorShell editorShell, string transactionName ) : IDisposable

Описание методов

ApplyChange() публичный статический Метод

public static ApplyChange ( ITextBuffer textBuffer, int position, int length, string newText, string transactionName, ISelectionTracker selectionTracker, int maxMilliseconds ) : void
textBuffer ITextBuffer
position int
length int
newText string
transactionName string
selectionTracker ISelectionTracker
maxMilliseconds int
Результат void

ApplyChangeByTokens() публичный статический Метод

Incrementally applies whitespace change to the buffer having old and new tokens produced from the 'before formatting' and 'after formatting' versions of the same text.
public static ApplyChangeByTokens ( ITextBuffer textBuffer, ITextProvider oldTextProvider, ITextProvider newTextProvider, IReadOnlyList oldTokens, IReadOnlyList newTokens, ITextRange formatRange, string transactionName, ISelectionTracker selectionTracker, IEditorShell editorShell, System.Action additionalAction = null ) : void
textBuffer ITextBuffer Text buffer to apply changes to
oldTextProvider ITextProvider
newTextProvider ITextProvider Text provider of the text fragment before formatting
oldTokens IReadOnlyList Tokens from the 'before' text fragment
newTokens IReadOnlyList Tokens from the 'after' text fragment
formatRange ITextRange Range that is being formatted in the text buffer
transactionName string Name of the undo transaction to open
selectionTracker ISelectionTracker Selection tracker object that will save, track /// Action to perform after changes are applies by undo unit is not yet closed.
editorShell IEditorShell
additionalAction System.Action
Результат void