aboutsummaryrefslogtreecommitdiff
path: root/files/ja/orphaned/web/api
diff options
context:
space:
mode:
authorMDN <actions@users.noreply.github.com>2021-03-10 16:18:46 +0000
committerMDN <actions@users.noreply.github.com>2021-03-10 16:18:46 +0000
commit785c0b7c8adc9e73cfd07817009c4437255c9398 (patch)
treedf9c9cef2d0122f1227098f11d29a2141b014839 /files/ja/orphaned/web/api
parenta347d81327250fad25cb1990f012cab05c3cfa4c (diff)
downloadtranslated-content-785c0b7c8adc9e73cfd07817009c4437255c9398.tar.gz
translated-content-785c0b7c8adc9e73cfd07817009c4437255c9398.tar.bz2
translated-content-785c0b7c8adc9e73cfd07817009c4437255c9398.zip
[CRON] sync translated content
Diffstat (limited to 'files/ja/orphaned/web/api')
-rw-r--r--files/ja/orphaned/web/api/documentorshadowroot/mselementsfromrect/index.html55
1 files changed, 55 insertions, 0 deletions
diff --git a/files/ja/orphaned/web/api/documentorshadowroot/mselementsfromrect/index.html b/files/ja/orphaned/web/api/documentorshadowroot/mselementsfromrect/index.html
new file mode 100644
index 0000000000..a9c431e07a
--- /dev/null
+++ b/files/ja/orphaned/web/api/documentorshadowroot/mselementsfromrect/index.html
@@ -0,0 +1,55 @@
+---
+title: DocumentOrShadowRoot.msElementsFromRect()
+slug: orphaned/Web/API/DocumentOrShadowRoot/msElementsFromRect
+tags:
+ - API
+ - API:Microsoft Extensions
+ - Method
+ - Non-standard
+ - Reference
+ - msElementsFromRect
+translation_of: Web/API/DocumentOrShadowRoot/msElementsFromRect
+original_slug: Web/API/DocumentOrShadowRoot/msElementsFromRect
+---
+<div>{{APIRef("Microsoft Extensions")}}{{Non-standard_Header}}</div>
+
+<p><strong><code>msElementsFromRect</code></strong> メソッドは、left、 top、 width、 heighで定義された四角形の下にある要素のノードリストを返します。</p>
+
+<p>この独自プロパティは Internet Explorer と Microsoft Edge に固有のものです。</p>
+
+<h2 id="構文">構文</h2>
+
+<pre class="syntaxbox notranslate"><em>object</em>.msElementsFromRect(left, top, width, height, retVal)
+</pre>
+
+<h3 id="パラメータ">パラメータ</h3>
+
+<dl>
+ <dt><em>left </em>[in]</dt>
+ <dd>型: <strong>浮動小数点</strong></dd>
+ <dt><em>top</em>[in]</dt>
+ <dd>型: <strong>浮動小数点</strong></dd>
+ <dt><em>width</em>[in]</dt>
+ <dd>型: <strong>浮動小数点</strong></dd>
+ <dt><em>height </em>[in]</dt>
+ <dd>型: <strong>浮動小数点</strong></dd>
+ <dt><em>retVal </em>[out, reval]</dt>
+ <dd>型: <strong>ノードリスト</strong></dd>
+</dl>
+
+<h2 id="例">例</h2>
+
+<p>特定のポイントの下にある全ての要素を検索するには、 <code>msElementsFromPoint(x, y)</code> を使用します。長方形を交差する全ての要素を見つけるには、 <code>msElementsFromRect(top, left, width, height)</code> を使用します。</p>
+
+<pre class="brush: js notranslate">var nodeList = document.msElementsFromRect(x,y,width,height)
+var nodeList = document.msElementsFromPoint(x,y)
+</pre>
+
+<p>返された nodeList には z-index でソートされているため、要素の相対的なスタック順序を確認できます。</p>
+
+<h2 id="See_Also" name="See_Also">関連項目</h2>
+
+<ul>
+ <li><a href="https://testdrive-archive.azurewebsites.net/HTML5/HitTest/Default.html">Advanced Hit Testing APIs Demo for msElementsFromPoint() and msElementsFromRect() </a></li>
+ <li><a href="/en-US/docs/Web/API/Microsoft_API_extensions">Microsoft API extensions </a></li>
+</ul>