C# 클래스 Microsoft.Languages.Editor.Text.IncrementalTextChangeApplication

파일 보기 프로젝트 열기: Microsoft/RTVS

공개 메소드들

메소드 설명
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