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); }
public bool Equals(SimpleSegment other) { return(this.Offset == other.Offset && this.Length == other.Length); }