C# 클래스 Microsoft.R.Editor.Formatting.FormatOperations

파일 보기 프로젝트 열기: Microsoft/RTVS 1 사용 예제들

공개 메소드들

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