Ejemplo n.º 1
0
        public void OnTextChange(object sender, TextContentChangedEventArgs args)
        {
            List <TextChangeData> changeData = new List <TextChangeData>();

            foreach (var change in args.Changes)
            {
                changeData.Add(new TextChangeData(change.OldPosition, change.Delta, Math.Max(change.NewSpan.Length, change.OldSpan.Length)));
            }

            _bufferTextChangeHandler.OnTextChanged(changeData);
        }