C# 클래스 AvalonStudio.TextEditor.Document.DocumentLine

Represents a line inside a TextDocument.

The TextDocument.Lines collection contains one DocumentLine instance for every line in the document. This collection is read-only to user code and is automatically updated to reflect the current document content.

Internally, the DocumentLine instances are arranged in a binary tree that allows for both efficient updates and lookup. Converting between offset and line number is possible in O(lg N) time, and the data structure also updates all offsets in O(lg N) whenever a line is inserted or removed.

상속: IDocumentLine
파일 보기 프로젝트 열기: VitalElement/AvalonStudio 1 사용 예제들

Private Properties

프로퍼티 타입 설명
DebugVerifyAccess void
DocumentLine System
InitLineNode DocumentLine
ResetLine void

공개 메소드들

메소드 설명
ToString ( ) : string

Gets a string with debug output showing the line number and offset. Does not include the line's text.

비공개 메소드들

메소드 설명
DebugVerifyAccess ( ) : void
DocumentLine ( TextDocument document ) : System
InitLineNode ( ) : DocumentLine
ResetLine ( ) : void

Resets the line to enable its reuse after a document rebuild.

메소드 상세

ToString() 공개 메소드

Gets a string with debug output showing the line number and offset. Does not include the line's text.
public ToString ( ) : string
리턴 string