C# Class Microsoft.R.Editor.Formatting.FormatOperations

Afficher le fichier Open project: Microsoft/RTVS Class Usage Examples

Méthodes publiques

Méthode Description
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

Private Methods

Méthode Description
IndentCaretInNewScope ( ITextView textView, IScope scope, SnapshotPoint caretBufferPoint, Microsoft.R.Core.Formatting.RFormatOptions options ) : void

Method Details

FormatCurrentScope() public static méthode

public static FormatCurrentScope ( ITextView textView, ITextBuffer textBuffer, IEditorShell editorShell, bool indentCaret ) : void
textView ITextView
textBuffer ITextBuffer
editorShell IEditorShell
indentCaret bool
Résultat void

FormatCurrentStatement() public static méthode

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
Résultat void

FormatNode() public static méthode

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
Résultat void

FormatViewLine() public static méthode

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
Résultat void

GetIndentDefiningNode() public static méthode

public static GetIndentDefiningNode ( AstRoot ast, int position ) : IAstNode
ast Microsoft.R.Core.AST.AstRoot
position int
Résultat IAstNode

UndoableFormatRange() public static méthode

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
Résultat void