C# 클래스 ShaderTools.VisualStudio.Hlsl.Editing.Commenting.CommentingExtensions

파일 보기 프로젝트 열기: tgjones/HlslTools

공개 메소드들

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