WebPartZoneCollection コンストラクタ ()とは? わかりやすく解説

Weblio 辞書 > コンピュータ > .NET Framework クラス ライブラリ リファレンス > WebPartZoneCollection コンストラクタ ()の意味・解説 

WebPartZoneCollection コンストラクタ ()

メモ : このコンストラクタは、.NET Framework version 2.0新しく追加されたものです。

WebPartZoneCollection クラスの空のインスタンス初期化します。

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

Dim instance As New WebPartZoneCollection
public WebPartZoneCollection ()
public:
WebPartZoneCollection ()
public WebPartZoneCollection ()
public function WebPartZoneCollection ()
解説解説
プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照

WebPartZoneCollection コンストラクタ (ICollection)

メモ : このコンストラクタは、.NET Framework version 2.0新しく追加されたものです。

WebPartZoneCollection クラスインスタンスを、WebPartZone オブジェクトコレクションを渡すことによって初期化します。

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

Public Sub New ( _
    webPartZones As ICollection _
)
Dim webPartZones As ICollection

Dim instance As New WebPartZoneCollection(webPartZones)
public WebPartZoneCollection (
    ICollection webPartZones
)
public:
WebPartZoneCollection (
    ICollection^ webPartZones
)
public WebPartZoneCollection (
    ICollection webPartZones
)
public function WebPartZoneCollection (
    webPartZones : ICollection
)

パラメータ

webPartZones

WebPartZone オブジェクトの ICollection。

例外例外
例外種類条件

ArgumentNullException

ゾーンコレクションnull 参照 (Visual Basic では Nothing) です。

解説解説
使用例使用例

WebPartZoneCollection コンストラクタ使用方法次のコード例示します。この例の完全なコードは、WebPartZoneCollection概要にある「例」のセクション参照してください

コード次のセクションでは、Zones プロパティの値を取得することによって、WebPartZoneCollection オブジェクト変数割り当ててます。必要な場合は、Zones プロパティからすべてのゾーン割り当てるではなくページすべてのゾーンサブセット格納する WebPartZoneBase オブジェクト配列作成し、その配列新しWebPartZoneCollection オブジェクト割り当てることができます

Protected Sub Button5_Click(ByVal
 sender As Object, ByVal
 e As EventArgs)
  Label1.Text = String.Empty

  Dim zoneCollection As WebPartZoneCollection
 = mgr.Zones
  Dim zone As WebPartZone
  For Each zone In zoneCollection
    If zone.WebPartVerbRenderMode = WebPartVerbRenderMode.Menu
 Then
      zone.WebPartVerbRenderMode = WebPartVerbRenderMode.TitleBar
    Else
      zone.WebPartVerbRenderMode = WebPartVerbRenderMode.Menu
    End If
  Next zone

End Sub
protected void Button5_Click(object sender,
 EventArgs e)
{
  Label1.Text = String.Empty;

  WebPartZoneCollection zoneCollection = mgr.Zones;
  foreach (WebPartZone zone in zoneCollection)
  {

    if (zone.WebPartVerbRenderMode == WebPartVerbRenderMode.Menu)
      zone.WebPartVerbRenderMode = WebPartVerbRenderMode.TitleBar;
    else
      zone.WebPartVerbRenderMode = WebPartVerbRenderMode.Menu;
  }
}

コレクション作成した後は、コレクション反復処理して、格納されているすべてのゾーンまたはその内容に対して操作実行できますプログラム例実行するには、ブラウザページ読み込み各ゾーンの [Toggle Verb Render Mode] ボタンクリックします。これによって、ゾーン内のサーバー コントロールタイトル バー動詞表示方法変更されます。動詞は、ドロップダウン メニューに、またはタイトル バー直接リンクとして表示できます

プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照
関連項目
WebPartZoneCollection クラス
WebPartZoneCollection メンバ
System.Web.UI.WebControls.WebParts 名前空間
その他の技術情報
ASP.NET Web パーツ ページ

WebPartZoneCollection コンストラクタ

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

WebPartZoneCollection コンストラクタは、WebPartManager コントロールWeb パーツ コントロール セット内の他のコントロール、またはカスタム開発者コードによって、Web パーツ ページ上に存在する WebPartZone コントロール読み取り専用コレクション作成するために使用されます。

ASP.NET Web パーツ ページ
オーバーロードの一覧オーバーロードの一覧
名前 説明
WebPartZoneCollection () WebPartZoneCollection クラスの空のインスタンス初期化します。
WebPartZoneCollection (ICollection) WebPartZoneCollection クラスインスタンスを、WebPartZone オブジェクトコレクションを渡すことによって初期化します。
参照参照

関連項目

WebPartZoneCollection クラス
WebPartZoneCollection メンバ
System.Web.UI.WebControls.WebParts 名前空間

その他の技術情報

ASP.NET Web パーツ ページ
ASP.NET Web パーツ ページ



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

辞書ショートカット

すべての辞書の索引

「WebPartZoneCollection コンストラクタ ()」の関連用語

WebPartZoneCollection コンストラクタ ()のお隣キーワード
検索ランキング

   

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



WebPartZoneCollection コンストラクタ ()のページの著作権
Weblio 辞書 情報提供元は 参加元一覧 にて確認できます。

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

©2025 GRAS Group, Inc.RSS