OSDN Git Service

Selection~系列のプロパティをSelectionプロパティに統合した
[fooeditengine/FooEditEngine.git] / Common / Automaion / FooTextBoxAutomationPeer.cs
index 0afc666..cd798cc 100644 (file)
@@ -154,8 +154,8 @@ namespace FooEditEngine
         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;
         }