C# Класс ShaderTools.VisualStudio.Hlsl.Editing.Commenting.CommentingExtensions

Показать файл Открыть проект

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

Метод Описание
CommentOrUncommentBlock ( this view, bool comment ) : bool

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

Метод Описание
CommentRegion ( ITextView view, SnapshotPoint start, SnapshotPoint end ) : void

Adds comment characters (//) to the start of each line. If there is a selection the comment is applied to each selected line. Otherwise the comment is applied to the current line.

DeleteCommentChars ( ITextEdit edit, ITextSnapshotLine curLine ) : void
IndexOfNonWhitespaceCharacter ( string text ) : int
IsHlslContent ( this buffer ) : bool
MapPoint ( ITextView view, SnapshotPoint point ) : SnapshotPoint?
UncommentRegion ( ITextView view, SnapshotPoint start, SnapshotPoint end ) : void

Removes a comment character (//) from the start of each line. If there is a selection the character is removed from each selected line. Otherwise the character is removed from the current line. Uncommented lines are ignored.

UpdateSelection ( ITextView view, SnapshotPoint start, SnapshotPoint end ) : void

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

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

public static CommentOrUncommentBlock ( this view, bool comment ) : bool
view this
comment bool
Результат bool