ITextRangeProvider[] ITextProvider.GetSelection()
{
ITextRangeProvider[] ret = new ITextRangeProvider[1];
- int selStart = this.fooTextBox.SelectionStart;
- int selLength = this.fooTextBox.SelectionLength;
+ int selStart = this.fooTextBox.Selection.Index;
+ int selLength = this.fooTextBox.Selection.Length;
ret[0] = new FooTextBoxRangeProvider(this.fooTextBox, selStart, selLength, this);
return ret;
}