Beispiel #1
0
        public override bool AddSelection(int startOffset, int endOffset)
        {
            ITextRangeProvider textRange = GetTextRange(startOffset, endOffset);

            if (NSelections == 0)
            {
                textRange.Select();
                return(true);
            }

            try {
                textRange.AddToSelection();
            } catch (InvalidOperationException e) {
                Log.Debug(e);
                return(false);
            }
            return(true);
        }
 public void AddToSelection()
 {
     provider.AddToSelection();
 }