public override void Execute(TextBoxControl editor) { base.Execute(editor); List <TextLocation> locationList = editor.GetDoubleClickSelectSegmentInfo(editor.Caret.Position.Y, editor.Caret.Position.X + 1); if (locationList.Count == 2) { editor.Caret.Position = new TextLocation(locationList[0].X, editor.Caret.Position.Y); editor.Caret.UpdateCaretPosition(); } }