Пример #1
0
		internal DocumentLine(TextDocument document) {
#if DEBUG
			Debug.Assert(document != null);
			this.document = document;
#endif
		}
Пример #2
0
		public LineManager(DocumentLineTree documentLineTree, TextDocument document) {
			this.document = document;
			this.documentLineTree = documentLineTree;

			Rebuild();
		}
Пример #3
0
		public TextBuffer(IContentType contentType, string text) {
			if (contentType == null)
				throw new ArgumentNullException(nameof(contentType));
			Properties = new PropertyCollection();
			this.contentType = contentType;
			currentTextVersion = new TextVersion(this, text?.Length ?? 0, 0, 0);
			Document = new TextDocument(text);
			Document.SetOwnerThread(null);
		}