aboutsummaryrefslogtreecommitdiff
path: root/files/ja/archive/mozilla/xul/method/setselectionrange/index.html
blob: 973c823c486d1071088615297549accd0a131712 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
---
title: setSelectionRange
slug: Archive/Mozilla/XUL/Method/setSelectionRange
tags:
  - XUL Methods
  - XUL Reference
translation_of: Archive/Mozilla/XUL/Method/setSelectionRange
---
<div class="noinclude"><span class="breadcrumbs XULRefMeth_breadcrumbs">« <a href="/ja/docs/XUL_Reference" title="/ja/docs/XUL_Reference">XUL リファレンス HOME</a></span></div>
<dl>
  <dt><span id="m-setSelectionRange"><code><a href="https://developer.mozilla.org/ja/docs/Mozilla/Tech/XUL/Method/setSelectionRange">setSelectionRange( start, end )</a></code></span></dt>
  <dd>
    戻り値の型: <em>戻り値無し</em></dd>
  <dd>textbox の選択部分を設定します。<var>start</var> 引数は選択範囲の最初の文字の index です。<var>end</var> 引数は選択範囲の直後の文字の index です。テキストを選択せずに指定の位置へカーソルを移動するには、両方の引数を同じ値に設定してください。</dd>
</dl>