Ejemplo n.º 1
0
            ITextRangeProvider[] ITextProvider.GetSelection()
            {
                var selectionManager = Control.ActiveTextAreaControl.SelectionManager;

                var result = new ITextRangeProvider[selectionManager.SelectionCollection.Count];

                for (int i = 0; i < result.Length; i++)
                {
                    result[i] = new TextRangeProvider(Control, selectionManager.SelectionCollection[0]);
                }

                return(result);
            }
Ejemplo n.º 2
0
            ITextRangeProvider[] ITextProvider.GetSelection()
            {
                var selectionManager = Control.ActiveTextAreaControl.SelectionManager;

                var result = new ITextRangeProvider[selectionManager.SelectionCollection.Count];

                for (int i = 0; i < result.Length; i++)
                {
                    result[i] = new TextRangeProvider(Control, selectionManager.SelectionCollection[0]);
                }

                return result;
            }