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

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

PanelStyle.ScrollBars プロパティ

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

パネル コントロールスクロール バー表示態と位置取得または設定します

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

Public Overridable Property
 ScrollBars As ScrollBars
Dim instance As PanelStyle
Dim value As ScrollBars

value = instance.ScrollBars

instance.ScrollBars = value
public virtual ScrollBars ScrollBars { get;
 set; }
public:
virtual property ScrollBars ScrollBars {
    ScrollBars get ();
    void set (ScrollBars value);
}
/** @property */
public ScrollBars get_ScrollBars ()

/** @property */
public void set_ScrollBars (ScrollBars value)
public function get ScrollBars
 () : ScrollBars

public function set ScrollBars
 (value : ScrollBars)

プロパティ
ScrollBars 値の 1 つ既定値は None です。

解説解説
使用例使用例

Panel1Panel22 つパネル コントロールScrollBars プロパティに、ScrollBars.Both 列挙値を設定するコード例次に示します。このコード例は、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 名前空間
ScrollBars



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

辞書ショートカット

すべての辞書の索引

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

   

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



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

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

©2024 GRAS Group, Inc.RSS