C# 클래스 Emmet.Snippets.CodeSnippet

Represents a region of source code in the editor that has some tab stops in it.
파일 보기 프로젝트 열기: sergey-rybalkin/emmet.net 1 사용 예제들

공개 메소드들

메소드 설명
BeginEditSnippet ( ) : void

Moves caret to the first tab stop in the active snippet.

CreateSnippetInView ( ViewContext view, Span tabStops, int tabStopGroups ) : CodeSnippet

Creates code snippet in the specified view.

EndEditSnippet ( ) : void

Detaches this object from the target view.

GetTabStopsPositions ( ) : Span[]

Gets this snippet tab stops positions in the active text snapshot.

TryMoveToNextTabStop ( bool reverse = false ) : bool

Tries to move caret to next tab stop. Returns true if succeeded; false otherwise. False indicates that caret is not inside any of the available tab stops which indicates that tab stops tracking should be finished and this snippet should be detached from the view.

비공개 메소드들

메소드 설명
CodeSnippet ( ) : Microsoft.VisualStudio.Text

Initializes a new instance of the CodeSnippet class. Constructor that prevents a default instance of this class from being created.

ConvertToTrackingSpans ( ViewContext view, Span spans ) : ITrackingSpan[]
GetLastTabStopInGroup ( int index ) : int
MoveToSpan ( ITrackingSpan span ) : void
MoveToSpan ( SnapshotSpan target ) : void

메소드 상세

BeginEditSnippet() 공개 메소드

Moves caret to the first tab stop in the active snippet.
public BeginEditSnippet ( ) : void
리턴 void

CreateSnippetInView() 공개 정적인 메소드

Creates code snippet in the specified view.
public static CreateSnippetInView ( ViewContext view, Span tabStops, int tabStopGroups ) : CodeSnippet
view ViewContext Editor view that contains snippet.
tabStops Span Tab stops collection.
tabStopGroups int Groups the tab stop belongs to.
리턴 CodeSnippet

EndEditSnippet() 공개 메소드

Detaches this object from the target view.
public EndEditSnippet ( ) : void
리턴 void

GetTabStopsPositions() 공개 메소드

Gets this snippet tab stops positions in the active text snapshot.
public GetTabStopsPositions ( ) : Span[]
리턴 Span[]

TryMoveToNextTabStop() 공개 메소드

Tries to move caret to next tab stop. Returns true if succeeded; false otherwise. False indicates that caret is not inside any of the available tab stops which indicates that tab stops tracking should be finished and this snippet should be detached from the view.
public TryMoveToNextTabStop ( bool reverse = false ) : bool
reverse bool Indicates whether move should be made in reverse direction.
리턴 bool