C# Класс Microsoft.R.Editor.Comments.RCommenter

Provides functionality for comment/uncomment lines in R editor document
Показать файл Открыть проект Примеры использования класса

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

Метод Описание
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