Exemplo n.º 1
0
        // ========================================
        // constructor
        // ========================================
        public TextBufferReferer(TextBuffer target)
        {
            _caretPosition = 0;
            _mark          = null;
            _textSelection = new TextSelection(this);

            if (target == null)
            {
                _target = TextUtil.CreateTextBuffer() as TextBuffer;
            }
            else
            {
                _target = target;
            }
        }