C# 클래스 Microsoft.R.Editor.Comments.RCommenter

Provides functionality for comment/uncomment lines in R editor document
파일 보기 프로젝트 열기: Microsoft/RTVS 1 사용 예제들

공개 메소드들

메소드 설명
CommentBlock ( ITextView textView, ITextBuffer textBuffer, ITextRange range, IEditorShell editorShell ) : void

Comments selected lines or current line if range has zero length. Continues adding commentcharacter even if line is already commented. # -> ## -> ### and so on. Matches C# behavior.

DoActionOnLines ( ITextView textView, ITextBuffer textBuffer, ITextRange range, IEditorShell editorShell, bool>.Func action, string actionName ) : void
UncommentBlock ( ITextView textView, ITextBuffer textBuffer, ITextRange range, IEditorShell editorShell ) : void

Uncomments selected lines or current line if range has zero length. Only removes single comment. ### -> ## -> # and so on. Matches C# behavior.

비공개 메소드들

메소드 설명
CommentLine ( ITextSnapshotLine line ) : bool
UncommentLine ( ITextSnapshotLine line ) : bool

메소드 상세

CommentBlock() 공개 정적인 메소드

Comments selected lines or current line if range has zero length. Continues adding commentcharacter even if line is already commented. # -> ## -> ### and so on. Matches C# behavior.
public static CommentBlock ( ITextView textView, ITextBuffer textBuffer, ITextRange range, IEditorShell editorShell ) : void
textView ITextView
textBuffer ITextBuffer
range ITextRange
editorShell IEditorShell
리턴 void

DoActionOnLines() 공개 정적인 메소드

public static DoActionOnLines ( ITextView textView, ITextBuffer textBuffer, ITextRange range, IEditorShell editorShell, bool>.Func action, string actionName ) : void
textView ITextView
textBuffer ITextBuffer
range ITextRange
editorShell IEditorShell
action bool>.Func
actionName string
리턴 void

UncommentBlock() 공개 정적인 메소드

Uncomments selected lines or current line if range has zero length. Only removes single comment. ### -> ## -> # and so on. Matches C# behavior.
public static UncommentBlock ( ITextView textView, ITextBuffer textBuffer, ITextRange range, IEditorShell editorShell ) : void
textView ITextView
textBuffer ITextBuffer
range ITextRange
editorShell IEditorShell
리턴 void