From 33058f2b292b3a581333bdfb21b8f671898c5060 Mon Sep 17 00:00:00 2001 From: Peter Bengtsson Date: Tue, 8 Dec 2020 14:40:17 -0500 Subject: initial commit --- files/ja/web/api/svgstringlist/index.html | 196 ++++++++++++++++++++++++++++++ 1 file changed, 196 insertions(+) create mode 100644 files/ja/web/api/svgstringlist/index.html (limited to 'files/ja/web/api/svgstringlist') diff --git a/files/ja/web/api/svgstringlist/index.html b/files/ja/web/api/svgstringlist/index.html new file mode 100644 index 0000000000..e296aa2c29 --- /dev/null +++ b/files/ja/web/api/svgstringlist/index.html @@ -0,0 +1,196 @@ +--- +title: SVGStringList +slug: Web/API/SVGStringList +tags: + - API + - Reference + - SVG + - SVG DOM +translation_of: Web/API/SVGStringList +--- +
{{APIRef("SVG")}}
+ +

SVGStringList インターフェイス

+ +

SVGStringList は {{domxref("DOMString")}} オブジェクトのリストを定義します。

+ +

SVGStringList オブジェクトは読み取り専用に設計できます。まりオブジェクトを編集しようとすると例外が投げられることになります。

+ +

インターフェイスの概要

+ + + + + + + + + + + + + + + + + + + + +
Also implementなし
メソッド +
    +
  • void clear()
  • +
  • {{domxref("DOMString")}} initialize(in {{domxref("DOMString")}} newItem)
  • +
  • {{domxref("DOMString")}} getItem(in unsigned long index)
  • +
  • {{domxref("DOMString")}} insertItemBefore(in {{domxref("DOMString")}} newItem, in unsigned long index)
  • +
  • {{domxref("DOMString")}} replaceItem(in {{domxref("DOMString")}} newItem, in unsigned long index)
  • +
  • {{domxref("DOMString")}} removeItem(in unsigned long index)
  • +
  • {{domxref("DOMString")}} appendItem(in {{domxref("DOMString")}} newItem)
  • +
+
属性 +
    +
  • readonly unsigned long numberOfItems
  • +
  • readonly unsigned long length {{non-standard_inline}}
  • +
+
Normative documentSVG 1.1 (2nd Edition)
+ +

属性

+ + + + + + + + + + + + + + + + + + + + + +
名前説明
numberOfItemsunsigned longリスト内の項目の数
lengthunsigned longnumberOfItems のミラー値で、他のインターフェイスの整合性用。{{non-standard_inline}}
+ +

メソッド

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
名前と引数戻り値説明
clear()void +

リストから現在の既存アイテムをクリアーし、その結果空のリストになります。

+ +

Exceptions:

+ +
    +
  • a {{domxref("DOMException")}} with code NO_MODIFICATION_ALLOWED_ERR is raised when the list corresponds to a read only attribute or when the object itself is read only.
  • +
+
initialize(in {{domxref("DOMString")}} newItem){{domxref("DOMString")}} +

リストから現在の既存アイテムをクリアーしてパラメーターで指定された単一項目を保持するように初期化します。挿入した項目が既にある場合は、直前のリストから削除された後に挿入されます。挿入した項目は項目自体であってコピーではありません。戻り値はリストに挿入された項目です。

+ +

Exceptions:

+ +
    +
  • a {{domxref("DOMException")}} with code NO_MODIFICATION_ALLOWED_ERR is raised when the list corresponds to a read only attribute or when the object itself is read only.
  • +
+
getItem(in unsigned long index){{domxref("DOMString")}} +

リスト内の指定した項目を返します。戻り値は項目自体であってコピーではありません。戻り値はリストに挿入された項目です。項目になされた変更は即座にリストに反映されます。最初の項目は数字のゼロです。

+ +

Exceptions:

+ +
    +
  • a {{domxref("DOMException")}} with code NO_MODIFICATION_ALLOWED_ERR is raised when the list corresponds to a read only attribute or when the object itself is read only.
  • +
+
insertItemBefore(in {{domxref("DOMString")}} newItem, in unsigned long index){{domxref("DOMString")}} +

リストの指定した位置に新しい項目を挿入します。最初の項目は数字の 0 です。newItem がリスト中にすでに存在する場合、リストに挿入される前に以前のリストから削除されます。挿入される項目は項目自身でコピーではありません。注意点としてその前に挿入するという index は項目を削除する前の時点です。index が 0 と等しい場合、新項目はリストの前に挿入されます。index が numberOfItems 以上の場合、新項目はリストの後に挿入されます。

+ +

Exceptions:

+ +
    +
  • a {{domxref("DOMException")}} with code NO_MODIFICATION_ALLOWED_ERR is raised when the list corresponds to a read only attribute or when the object itself is read only.
  • +
+
replaceItem(in {{domxref("DOMString")}} newItem, in unsigned long index){{domxref("DOMString")}} +

リスト内の項目を新項目に置き換えます。newItem がリスト内にすでに存在する場合、リストに挿入される前に以前のリストから削除されます。挿入される項目は項目自身でコピーではありません。項目がリストにすでに存在する場合、注意点として置換する項目の index は項目を削除する前の時点です。

+ +

Exceptions:

+ +
    +
  • a {{domxref("DOMException")}} with code NO_MODIFICATION_ALLOWED_ERR is raised when the list corresponds to a read only attribute or when the object itself is read only.
  • +
  • a {{domxref("DOMException")}} with code INDEX_SIZE_ERR is raised if the index number is greater than or equal to numberOfItems.
  • +
+
removeItem(in unsigned long index){{domxref("DOMString")}} +

リストから既存項目を削除します。

+ +

Exceptions:

+ +
    +
  • a {{domxref("DOMException")}} with code NO_MODIFICATION_ALLOWED_ERR is raised when the list corresponds to a read only attribute or when the object itself is read only.
  • +
  • a {{domxref("DOMException")}} with code INDEX_SIZE_ERR is raised if the index number is greater than or equal to numberOfItems.
  • +
+
appendItem(in {{domxref("DOMString")}} newItem){{domxref("DOMString")}} +

リストの最後に新項目を挿入します。newItem がリスト内にすでに存在する場合、リストに挿入される前に以前のリストから削除されます。挿入される項目は項目自身でコピーではありません。

+ +

Exceptions:

+ +
    +
  • a {{domxref("DOMException")}} with code NO_MODIFICATION_ALLOWED_ERR is raised when the list corresponds to a read only attribute or when the object itself is read only.
  • +
+
+ +

ブラウザー実装状況

+ + + +

{{Compat("api.SVGStringList")}}

+ +

 

-- cgit v1.2.3-54-g00ecf