Example #1
0
 public SegmentedDocument(TextDocument textDocument)
 {
     this.textDocument                 = textDocument;
     Segments                          = new TextSegmentCollection <DocumentSegment>(textDocument);
     this.textDocument.Changing       += onChanging;
     this.textDocument.UpdateFinished += OnUpdateEnd;
     ReadOnlySectionProvider           = new TextSegmentReadOnlySectionProvider <TextSegment>(textDocument);
 }
 public void SetUp()
 {
     segments = new TextSegmentCollection<TextSegment>();
     provider = new TextSegmentReadOnlySectionProvider<TextSegment>(segments);
 }