PanelStyle.Wrap プロパティとは? わかりやすく解説

Weblio 辞書 > コンピュータ > .NET Framework クラス ライブラリ リファレンス > PanelStyle.Wrap プロパティの意味・解説 

PanelStyle.Wrap プロパティ

メモ : このプロパティは、.NET Framework version 2.0新しく追加されたものです。

パネル内容ラップするかどうかを示す値を取得または設定します

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

解説解説
使用例使用例

Panel1Panel22 つパネル コントロールに対してWrap プロパティfalse設定するコード例次に示します。このコード例は、PanelStyle クラストピック取り上げているコード例一部分です。

Partial Class PanelStylevb_aspx
    Inherits Page

    Sub Page_Load(ByVal sender As
 Object, ByVal e As EventArgs)

        Dim panelState As StateBag = New
 StateBag()
        Dim myPanelStyle As PanelStyle = New
 PanelStyle(panelState)

        ' Set the properties of the PanelStyle class.
        myPanelStyle.HorizontalAlign = HorizontalAlign.Center
        myPanelStyle.ScrollBars = ScrollBars.Both
        myPanelStyle.Wrap = False
        myPanelStyle.Direction = ContentDirection.LeftToRight
        myPanelStyle.BackImageUrl = "~\images\picture.jpg"

        ' Use the ApplyStyle method of the Panel control to apply
        ' the settings from the myPanelStyle object.
        Panel1.ApplyStyle(myPanelStyle)
        Panel2.ApplyStyle(myPanelStyle)
        
    End Sub

End Class
public partial class PanelStylecs_aspx : Page
{
    void Page_Load(object sender, EventArgs e)
    {
        StateBag panelState = new StateBag();
        PanelStyle myPanelStyle = new PanelStyle(panelState);
        
        // Set the properties of the PanelStyle class.
        myPanelStyle.HorizontalAlign = HorizontalAlign.Center;
        myPanelStyle.ScrollBars = ScrollBars.Both;
        myPanelStyle.Wrap = false;
        myPanelStyle.Direction = ContentDirection.LeftToRight;
        myPanelStyle.BackImageUrl = @"~\images\picture.jpg";

        // Use the ApplyStyle method of the Panel control to apply
        // the settings from the myPanelStyle object.
        Panel1.ApplyStyle(myPanelStyle);
        Panel2.ApplyStyle(myPanelStyle); 
    }
}
プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照
関連項目
PanelStyle クラス
PanelStyle メンバ
System.Web.UI.WebControls 名前空間


このページでは「.NET Framework クラス ライブラリ リファレンス」からPanelStyle.Wrap プロパティを検索した結果を表示しています。
Weblioに収録されているすべての辞書からPanelStyle.Wrap プロパティを検索する場合は、下記のリンクをクリックしてください。
 全ての辞書からPanelStyle.Wrap プロパティ を検索

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

辞書ショートカット

すべての辞書の索引

PanelStyle.Wrap プロパティのお隣キーワード
検索ランキング

   

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



PanelStyle.Wrap プロパティのページの著作権
Weblio 辞書 情報提供元は 参加元一覧 にて確認できます。

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

©2025 GRAS Group, Inc.RSS