C# Класс Microsoft.R.Editor.Formatting.FormatOperations

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

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

Метод Описание
FormatCurrentScope ( ITextView textView, ITextBuffer textBuffer, IEditorShell editorShell, bool indentCaret ) : void
FormatCurrentStatement ( ITextView textView, ITextBuffer textBuffer, IEditorShell editorShell, bool limitAtCaret = false, int caretOffset ) : void

Formats statement that the caret is at

FormatNode ( ITextView textView, ITextBuffer textBuffer, IEditorShell editorShell, IAstNode node, int limit = -1 ) : void

Formats specific AST node

FormatViewLine ( ITextView textView, ITextBuffer textBuffer, int offset, IEditorShell editorShell ) : void

Formats line the caret is currently at

GetIndentDefiningNode ( AstRoot ast, int position ) : IAstNode
UndoableFormatRange ( ITextView textView, ITextBuffer textBuffer, ITextRange formatRange, IEditorShell editorShell, bool exactRange = false ) : void

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

Метод Описание
IndentCaretInNewScope ( ITextView textView, IScope scope, SnapshotPoint caretBufferPoint, Microsoft.R.Core.Formatting.RFormatOptions options ) : void

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

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

public static FormatCurrentScope ( ITextView textView, ITextBuffer textBuffer, IEditorShell editorShell, bool indentCaret ) : void
textView ITextView
textBuffer ITextBuffer
editorShell IEditorShell
indentCaret bool
Результат void

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

Formats statement that the caret is at
public static FormatCurrentStatement ( ITextView textView, ITextBuffer textBuffer, IEditorShell editorShell, bool limitAtCaret = false, int caretOffset ) : void
textView ITextView
textBuffer ITextBuffer
editorShell IEditorShell
limitAtCaret bool
caretOffset int
Результат void

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

Formats specific AST node
public static FormatNode ( ITextView textView, ITextBuffer textBuffer, IEditorShell editorShell, IAstNode node, int limit = -1 ) : void
textView ITextView
textBuffer ITextBuffer
editorShell IEditorShell
node IAstNode
limit int
Результат void

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

Formats line the caret is currently at
public static FormatViewLine ( ITextView textView, ITextBuffer textBuffer, int offset, IEditorShell editorShell ) : void
textView ITextView
textBuffer ITextBuffer
offset int
editorShell IEditorShell
Результат void

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

public static GetIndentDefiningNode ( AstRoot ast, int position ) : IAstNode
ast Microsoft.R.Core.AST.AstRoot
position int
Результат IAstNode

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

public static UndoableFormatRange ( ITextView textView, ITextBuffer textBuffer, ITextRange formatRange, IEditorShell editorShell, bool exactRange = false ) : void
textView ITextView
textBuffer ITextBuffer
formatRange ITextRange
editorShell IEditorShell
exactRange bool
Результат void