C# Класс dnSpy.Text.Editor.ReplEditor

Наследование: IReplEditor2
Показать файл Открыть проект Примеры использования класса

Private Properties

Свойство Тип Описание
ChangedUserInput bool
CreateReplCommandInput ReplCommandInput
TextBuffer_Changed void
ToInputString string

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

Метод Описание
AddCode ( StringBuilder sb, dnSpy.Text.Editor.ReplSubBuffer buf, int startOffset, int endOffset ) : void
AddCodeSubBuffer ( ) : void
AddNewDocument ( ) : void
AddOrUpdateOutputSubBuffer ( ) : void

If the previous completed sub buffer is an output sub buffer, update it to include the new output, else create a new one.

AddSubBuffer ( dnSpy.Text.Editor.ReplSubBuffer buffer ) : void
CanReplace ( SnapshotSpan span, string newText ) : bool
ClearCurrentInput ( bool removePrompt ) : void
ClearInput ( ) : void
ClearPendingOutput ( ) : void
ClearScreen ( ) : void
ClearUndoRedoHistory ( ) : void
CopyCode ( ) : void
CreateEmptyLastLineIfNeededAndMoveCaret ( ) : void
DelayScreenRefresh ( ) : void
Dispose ( ) : void
FilterOffset ( int offset ) : int
FindBuffer ( int offset ) : dnSpy.Text.Editor.ReplSubBufferInfo
FlushScriptOutput ( ) : void
FlushScriptOutputUIThread ( ) : void
GetCode ( ) : string
IReplEditor ( IEnumerable text ) : void
IReplEditor ( string text, TextColor color, bool startOnNewLine ) : void
IReplEditor ( string text, object color, bool startOnNewLine ) : void
MoveTo ( int offset ) : void
MoveToEnd ( ) : void
OnCommandExecuted ( ) : void
Options_OptionChanged ( object sender, EditorOptionChangedEventArgs e ) : void
PrintPrompt ( ) : void
RawAppend ( string text ) : void
RefreshScreen ( ) : void
RefreshScreenHandler ( object sender, EventArgs e ) : void
ReplEditor ( dnSpy.Contracts.Text.Editor.ReplEditorOptions options, IDsTextEditorFactoryService dsTextEditorFactoryService, IContentTypeRegistryService contentTypeRegistryService, ITextBufferFactoryService textBufferFactoryService, IEditorOperationsFactoryService editorOperationsFactoryService, IEditorOptionsFactoryService editorOptionsFactoryService, IClassificationTypeRegistryService classificationTypeRegistryService, IThemeClassificationTypeService themeClassificationTypeService, IPickSaveFilename pickSaveFilename, ITextViewUndoManagerProvider textViewUndoManagerProvider ) : System
Reset ( ) : void
SaveCode ( string filenameNoExtension, string fileExtension, string filesFilter ) : void
SaveText ( string filenameNoExtension, string fileExtension, string filesFilter ) : void
SaveToFile ( string filenameNoExtension, string fileExtension, string filesFilter, string fileContents ) : void
SelectNextCommand ( ) : void
SelectPreviousCommand ( ) : void
SelectSameTextNextCommand ( ) : void
SelectSameTextPreviousCommand ( ) : void
StopRefreshTimer ( ) : void
TextBuffer_ChangedLowPriority ( object sender, TextContentChangedEventArgs e ) : void
TrySubmit ( bool force ) : bool
UpdateCommand ( bool clearSearchText ) : void
UpdateRefreshScreenOnChange ( ) : void
WpfTextView_Closed ( object sender, EventArgs e ) : void
WpfTextView_Loaded ( object sender, RoutedEventArgs e ) : void
WriteOffsetOfPrompt ( int newValue, bool force = false ) : void

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

Метод Описание
ChangedUserInput ( TextContentChangedEventArgs e ) : bool
CreateReplCommandInput ( TextContentChangedEventArgs e ) : ReplCommandInput
TextBuffer_Changed ( object sender, TextContentChangedEventArgs e ) : void
ToInputString ( string text, string prefixString ) : string

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

AddCode() публичный Метод

public AddCode ( StringBuilder sb, dnSpy.Text.Editor.ReplSubBuffer buf, int startOffset, int endOffset ) : void
sb StringBuilder
buf dnSpy.Text.Editor.ReplSubBuffer
startOffset int
endOffset int
Результат void

AddCodeSubBuffer() публичный Метод

public AddCodeSubBuffer ( ) : void
Результат void

AddNewDocument() публичный Метод

public AddNewDocument ( ) : void
Результат void

AddOrUpdateOutputSubBuffer() публичный Метод

If the previous completed sub buffer is an output sub buffer, update it to include the new output, else create a new one.
public AddOrUpdateOutputSubBuffer ( ) : void
Результат void

AddSubBuffer() публичный Метод

public AddSubBuffer ( dnSpy.Text.Editor.ReplSubBuffer buffer ) : void
buffer dnSpy.Text.Editor.ReplSubBuffer
Результат void

CanReplace() публичный Метод

public CanReplace ( SnapshotSpan span, string newText ) : bool
span SnapshotSpan
newText string
Результат bool

ClearCurrentInput() публичный Метод

public ClearCurrentInput ( bool removePrompt ) : void
removePrompt bool
Результат void

ClearInput() публичный Метод

public ClearInput ( ) : void
Результат void

ClearPendingOutput() публичный Метод

public ClearPendingOutput ( ) : void
Результат void

ClearScreen() публичный Метод

public ClearScreen ( ) : void
Результат void

ClearUndoRedoHistory() публичный Метод

public ClearUndoRedoHistory ( ) : void
Результат void

CopyCode() публичный Метод

public CopyCode ( ) : void
Результат void

CreateEmptyLastLineIfNeededAndMoveCaret() публичный Метод

public CreateEmptyLastLineIfNeededAndMoveCaret ( ) : void
Результат void

DelayScreenRefresh() публичный Метод

public DelayScreenRefresh ( ) : void
Результат void

Dispose() публичный Метод

public Dispose ( ) : void
Результат void

FilterOffset() публичный Метод

public FilterOffset ( int offset ) : int
offset int
Результат int

FindBuffer() публичный Метод

public FindBuffer ( int offset ) : dnSpy.Text.Editor.ReplSubBufferInfo
offset int
Результат dnSpy.Text.Editor.ReplSubBufferInfo

FlushScriptOutput() публичный Метод

public FlushScriptOutput ( ) : void
Результат void

FlushScriptOutputUIThread() публичный Метод

public FlushScriptOutputUIThread ( ) : void
Результат void

GetCode() публичный Метод

public GetCode ( ) : string
Результат string

IReplEditor() публичный Метод

public IReplEditor ( IEnumerable text ) : void
text IEnumerable
Результат void

IReplEditor() публичный Метод

public IReplEditor ( string text, TextColor color, bool startOnNewLine ) : void
text string
color TextColor
startOnNewLine bool
Результат void

IReplEditor() публичный Метод

public IReplEditor ( string text, object color, bool startOnNewLine ) : void
text string
color object
startOnNewLine bool
Результат void

MoveTo() публичный Метод

public MoveTo ( int offset ) : void
offset int
Результат void

MoveToEnd() публичный Метод

public MoveToEnd ( ) : void
Результат void

OnCommandExecuted() публичный Метод

public OnCommandExecuted ( ) : void
Результат void

Options_OptionChanged() публичный Метод

public Options_OptionChanged ( object sender, EditorOptionChangedEventArgs e ) : void
sender object
e EditorOptionChangedEventArgs
Результат void

PrintPrompt() публичный Метод

public PrintPrompt ( ) : void
Результат void

RawAppend() публичный Метод

public RawAppend ( string text ) : void
text string
Результат void

RefreshScreen() публичный Метод

public RefreshScreen ( ) : void
Результат void

RefreshScreenHandler() публичный Метод

public RefreshScreenHandler ( object sender, EventArgs e ) : void
sender object
e System.EventArgs
Результат void

ReplEditor() публичный Метод

public ReplEditor ( dnSpy.Contracts.Text.Editor.ReplEditorOptions options, IDsTextEditorFactoryService dsTextEditorFactoryService, IContentTypeRegistryService contentTypeRegistryService, ITextBufferFactoryService textBufferFactoryService, IEditorOperationsFactoryService editorOperationsFactoryService, IEditorOptionsFactoryService editorOptionsFactoryService, IClassificationTypeRegistryService classificationTypeRegistryService, IThemeClassificationTypeService themeClassificationTypeService, IPickSaveFilename pickSaveFilename, ITextViewUndoManagerProvider textViewUndoManagerProvider ) : System
options dnSpy.Contracts.Text.Editor.ReplEditorOptions
dsTextEditorFactoryService IDsTextEditorFactoryService
contentTypeRegistryService IContentTypeRegistryService
textBufferFactoryService ITextBufferFactoryService
editorOperationsFactoryService IEditorOperationsFactoryService
editorOptionsFactoryService IEditorOptionsFactoryService
classificationTypeRegistryService IClassificationTypeRegistryService
themeClassificationTypeService IThemeClassificationTypeService
pickSaveFilename IPickSaveFilename
textViewUndoManagerProvider ITextViewUndoManagerProvider
Результат System

Reset() публичный Метод

public Reset ( ) : void
Результат void

SaveCode() публичный Метод

public SaveCode ( string filenameNoExtension, string fileExtension, string filesFilter ) : void
filenameNoExtension string
fileExtension string
filesFilter string
Результат void

SaveText() публичный Метод

public SaveText ( string filenameNoExtension, string fileExtension, string filesFilter ) : void
filenameNoExtension string
fileExtension string
filesFilter string
Результат void

SaveToFile() публичный Метод

public SaveToFile ( string filenameNoExtension, string fileExtension, string filesFilter, string fileContents ) : void
filenameNoExtension string
fileExtension string
filesFilter string
fileContents string
Результат void

SelectNextCommand() публичный Метод

public SelectNextCommand ( ) : void
Результат void

SelectPreviousCommand() публичный Метод

public SelectPreviousCommand ( ) : void
Результат void

SelectSameTextNextCommand() публичный Метод

public SelectSameTextNextCommand ( ) : void
Результат void

SelectSameTextPreviousCommand() публичный Метод

public SelectSameTextPreviousCommand ( ) : void
Результат void

StopRefreshTimer() публичный Метод

public StopRefreshTimer ( ) : void
Результат void

TextBuffer_ChangedLowPriority() публичный Метод

public TextBuffer_ChangedLowPriority ( object sender, TextContentChangedEventArgs e ) : void
sender object
e TextContentChangedEventArgs
Результат void

TrySubmit() публичный Метод

public TrySubmit ( bool force ) : bool
force bool
Результат bool

UpdateCommand() публичный Метод

public UpdateCommand ( bool clearSearchText ) : void
clearSearchText bool
Результат void

UpdateRefreshScreenOnChange() публичный Метод

public UpdateRefreshScreenOnChange ( ) : void
Результат void

WpfTextView_Closed() публичный Метод

public WpfTextView_Closed ( object sender, EventArgs e ) : void
sender object
e System.EventArgs
Результат void

WpfTextView_Loaded() публичный Метод

public WpfTextView_Loaded ( object sender, RoutedEventArgs e ) : void
sender object
e System.Windows.RoutedEventArgs
Результат void

WriteOffsetOfPrompt() публичный Метод

public WriteOffsetOfPrompt ( int newValue, bool force = false ) : void
newValue int
force bool
Результат void