Пример #1
0
 public TextSnapshot(ITextBuffer buffer, ITextVersion2 version, StringOperand source)
 {
     _version    = version;
     TextBuffer  = buffer;
     TextImage   = new TextImage(version.ImageVersion, source);
     ContentType = version.TextBuffer.ContentType;
 }
Пример #2
0
 public TextSnapshot(ITextBuffer buffer, TextVersion version, StringOperand source)
 {
     _version    = version;
     _source     = source;
     TextBuffer  = buffer;
     ContentType = version.TextBuffer.ContentType;
 }
Пример #3
0
 public TextImage(ITextImageVersion version, StringOperand sourceOperand)
 {
     Version        = version;
     _sourceOperand = sourceOperand;
 }
Пример #4
0
 public TextBuffer(IContentType contentType, StringOperand source)
 {
     ContentType     = contentType;
     CurrentSnapshot = new TextSnapshot(this, new TextVersion(this, source.Length), source);
 }