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); }
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; }