RepeaterItemCollectionとは何? わかりやすく解説 Weblio辞書

RepeaterItemCollectionとは? わかりやすく解説

RepeaterItemCollection クラス

Repeater コントロール内の RepeaterItem オブジェクトコレクション表します。このクラス継承できません。

名前空間: System.Web.UI.WebControls
アセンブリ: System.Web (system.web.dll 内)
構文構文

Public NotInheritable Class
 RepeaterItemCollection
    Implements ICollection, IEnumerable
Dim instance As RepeaterItemCollection
public sealed class RepeaterItemCollection
 : ICollection, IEnumerable
public ref class RepeaterItemCollection sealed
 : ICollection, IEnumerable
public final class RepeaterItemCollection implements
 ICollection, IEnumerable
public final class RepeaterItemCollection implements
 ICollection, IEnumerable
解説解説
使用例使用例
Sub Page_Load(Sender As Object,
 e As EventArgs)
   If Not IsPostBack Then
      Dim myDataSource As New
 ArrayList()

      myDataSource.Add(New PositionData("Item
 1", "$6.00"))
      myDataSource.Add(New PositionData("Item
 2", "$7.48"))
      myDataSource.Add(New PositionData("Item
 3", "$9.96"))

      ' Initialize the RepeaterItemCollection using the ArrayList as
 the data source.
      Dim myCollection As New
 RepeaterItemCollection(myDataSource)
      myRepeater.DataSource = myCollection
      myRepeater.DataBind()
   End If
End Sub 'Page_Load
void Page_Load(Object Sender, EventArgs e)
{
   if (!IsPostBack)
   {
      ArrayList myDataSource = new ArrayList();

      myDataSource.Add(new PositionData("Item 1", "$6.00"));
      myDataSource.Add(new PositionData("Item 2", "$7.48"));
      myDataSource.Add(new PositionData("Item 3", "$9.96"));
      
      // Initialize the RepeaterItemCollection using the ArrayList as
 the data source.
      RepeaterItemCollection myCollection = new RepeaterItemCollection(myDataSource);
      myRepeater.DataSource = myCollection;
      myRepeater.DataBind();
   }
}
継承階層継承階層
System.Object
  System.Web.UI.WebControls.RepeaterItemCollection
スレッド セーフスレッド セーフ
この型の public static (Visual Basic では Shared) メンバはすべて、スレッド セーフです。インスタンス メンバ場合は、スレッド セーフであるとは限りません。
プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照
関連項目
RepeaterItemCollection メンバ
System.Web.UI.WebControls 名前空間
RepeaterItem クラス
Repeater クラス
Repeater.Items プロパティ
CopyTo
GetEnumerator
Count

RepeaterItemCollection コンストラクタ

RepeaterItemCollection クラス新しインスタンス初期化します。

名前空間: System.Web.UI.WebControls
アセンブリ: System.Web (system.web.dll 内)
構文構文

Public Sub New ( _
    items As ArrayList _
)
Dim items As ArrayList

Dim instance As New RepeaterItemCollection(items)
public RepeaterItemCollection (
    ArrayList items
)
public:
RepeaterItemCollection (
    ArrayList^ items
)
public RepeaterItemCollection (
    ArrayList items
)
public function RepeaterItemCollection (
    items : ArrayList
)

パラメータ

items

コレクション初期化するために使用する項目を保持する System.Collections.ArrayList。

解説解説
使用例使用例
Sub Page_Load(Sender As Object,
 e As EventArgs)
   If Not IsPostBack Then
      Dim myDataSource As New
 ArrayList()

      myDataSource.Add(New PositionData("Item
 1", "$6.00"))
      myDataSource.Add(New PositionData("Item
 2", "$7.48"))
      myDataSource.Add(New PositionData("Item
 3", "$9.96"))

      ' Initialize the RepeaterItemCollection using the ArrayList as
 the data source.
      Dim myCollection As New
 RepeaterItemCollection(myDataSource)
      myRepeater.DataSource = myCollection
      myRepeater.DataBind()
   End If
End Sub 'Page_Load
void Page_Load(Object Sender, EventArgs e)
{
   if (!IsPostBack)
   {
      ArrayList myDataSource = new ArrayList();

      myDataSource.Add(new PositionData("Item 1", "$6.00"));
      myDataSource.Add(new PositionData("Item 2", "$7.48"));
      myDataSource.Add(new PositionData("Item 3", "$9.96"));
      
      // Initialize the RepeaterItemCollection using the ArrayList as
 the data source.
      RepeaterItemCollection myCollection = new RepeaterItemCollection(myDataSource);
      myRepeater.DataSource = myCollection;
      myRepeater.DataBind();
   }
}
プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照
関連項目
RepeaterItemCollection クラス
RepeaterItemCollection メンバ
System.Web.UI.WebControls 名前空間
System.Collections.ArrayList

RepeaterItemCollection プロパティ


パブリック プロパティパブリック プロパティ

  名前 説明
パブリック プロパティ Count コレクション内の RepeaterItem オブジェクト数を取得します
パブリック プロパティ IsReadOnly RepeaterItemCollection 内の RepeaterItem オブジェクト変更できるかどうかを示す値を取得します
パブリック プロパティ IsSynchronized RepeaterItemCollection へのアクセス同期されている (スレッド セーフである) かどうかを示す値を取得します
パブリック プロパティ Item コレクション内の指定したインデックス位置RepeaterItem オブジェクト取得します
パブリック プロパティ SyncRoot RepeaterItemCollection コレクションへのアクセス同期するために使用できるオブジェクト取得します
参照参照

関連項目

RepeaterItemCollection クラス
System.Web.UI.WebControls 名前空間
RepeaterItem クラス
Repeater クラス
Repeater.Items プロパティ
CopyTo
GetEnumerator
Count

RepeaterItemCollection メソッド


パブリック メソッドパブリック メソッド

プロテクト メソッドプロテクト メソッド
参照参照

関連項目

RepeaterItemCollection クラス
System.Web.UI.WebControls 名前空間
RepeaterItem クラス
Repeater クラス
Repeater.Items プロパティ
CopyTo
GetEnumerator
Count

RepeaterItemCollection メンバ

Repeater コントロール内の RepeaterItem オブジェクトコレクション表します。このクラス継承できません。

RepeaterItemCollection データ型公開されるメンバを以下の表に示します


パブリック コンストラクタパブリック コンストラクタ
  名前 説明
パブリック メソッド RepeaterItemCollection RepeaterItemCollection クラス新しインスタンス初期化します。
パブリック プロパティパブリック プロパティ
  名前 説明
パブリック プロパティ Count コレクション内の RepeaterItem オブジェクト数を取得します
パブリック プロパティ IsReadOnly RepeaterItemCollection 内の RepeaterItem オブジェクト変更できるかどうかを示す値を取得します
パブリック プロパティ IsSynchronized RepeaterItemCollection へのアクセス同期されている (スレッド セーフである) かどうかを示す値を取得します
パブリック プロパティ Item コレクション内の指定したインデックス位置RepeaterItem オブジェクト取得します
パブリック プロパティ SyncRoot RepeaterItemCollection コレクションへのアクセス同期するために使用できるオブジェクト取得します
パブリック メソッドパブリック メソッド
プロテクト メソッドプロテクト メソッド
参照参照

関連項目

RepeaterItemCollection クラス
System.Web.UI.WebControls 名前空間
RepeaterItem クラス
Repeater クラス
Repeater.Items プロパティ
CopyTo
GetEnumerator
Count



英和和英テキスト翻訳>> Weblio翻訳
英語⇒日本語日本語⇒英語
  

辞書ショートカット

すべての辞書の索引

「RepeaterItemCollection」の関連用語

RepeaterItemCollectionのお隣キーワード
検索ランキング

   

英語⇒日本語
日本語⇒英語
   



RepeaterItemCollectionのページの著作権
Weblio 辞書 情報提供元は 参加元一覧 にて確認できます。

   
日本マイクロソフト株式会社日本マイクロソフト株式会社
© 2024 Microsoft.All rights reserved.

©2024 GRAS Group, Inc.RSS