Esempio n. 1
0
        public void Complete(TextArea textArea, ISegment completionSegment, EventArgs insertionRequestEventArgs)
        {
            SimpleSegment sgm = new SimpleSegment(completionSegment.Offset, completionSegment.Length);

            sgm.Offset -= 1; sgm.Length++;
            textArea.Document.Replace(sgm, this.Text);
        }
Esempio n. 2
0
 public bool Equals(SimpleSegment other)
 {
     return(this.Offset == other.Offset && this.Length == other.Length);
 }