List.Decorationとは? わかりやすく解説

List.Decoration プロパティ

項目に使用する装飾の種類を取得または設定します。既定値は None です。

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

<BindableAttribute(True)> _
Public Property Decoration As
 ListDecoration
Dim instance As List
Dim value As ListDecoration

value = instance.Decoration

instance.Decoration = value
[BindableAttribute(true)] 
public ListDecoration Decoration { get; set;
 }
[BindableAttribute(true)] 
public:
property ListDecoration Decoration {
    ListDecoration get ();
    void set (ListDecoration value);
}
/** @property */
public ListDecoration get_Decoration ()

/** @property */
public void set_Decoration (ListDecoration
 value)
public function get Decoration
 () : ListDecoration

public function set Decoration
 (value : ListDecoration)

プロパティ値
項目に使用する装飾の種類を表す列挙値。

解説解説
使用例使用例

Decoration プロパティを使用してリストを番号付きリストに変更するコード例を次に示します。このプロパティは、Page_Load メソッドの最終行で設定されます。このコード例は、List の概要で取り上げているコード例の一部です。

Protected Sub Page_Load(ByVal
 sender As Object, ByVal
 e As EventArgs)
    If Not IsPostBack Then
        ' Set the DataMembers of the List
        List1.DataValueField = "Status"
        List1.DataTextField = "TaskName"

        ' Create an ArrayList of task data
        Dim arr As ArrayList = New
 ArrayList()
        arr.Add(New Task("Define transactions",
 "scheduled"))
        arr.Add(New Task("Verify transactions",
 "scheduled"))
        arr.Add(New Task("Check balance sheet",
 "scheduled"))
        arr.Add(New Task("Compile balance sheet",
 "scheduled"))
        arr.Add(New Task("Prepare report",
 "scheduled"))
        arr.Add(New Task("Send report",
 "scheduled"))
        
        ' Bind the array to the list
        List1.DataSource = arr
        List1.DataBind()

        Const spec As String
 = "Start: {0} tasks are done, {1} " & _
           "tasks are scheduled, and {2} tasks are pending."
        Label2.Text = String.Format(spec, doneCount, _
            schedCount, pendCount)

        List1.Decoration = ListDecoration.Bulleted
    End If
End Sub
Protected Sub Page_Load(ByVal sender As Object, ByVal e As EventArgs)
    If Not IsPostBack Then
        ' Set the DataMembers of the List
        List1.DataValueField = "Status"
        List1.DataTextField = "TaskName"

        ' Create an ArrayList of task data
        Dim arr As ArrayList = New ArrayList()
        arr.Add(New Task("Define transactions", "scheduled"))
        arr.Add(New Task("Verify transactions", "scheduled"))
        arr.Add(New Task("Check balance sheet", "scheduled"))
        arr.Add(New Task("Compile balance sheet", "scheduled"))
        arr.Add(New Task("Prepare report", "scheduled"))
        arr.Add(New Task("Send report", "scheduled"))
        
        ' Bind the array to the list
        List1.DataSource = arr
        List1.DataBind()

        Const spec As String = "Start: {0} tasks are done, {1} " &
 _
           "tasks are scheduled, and {2} tasks are pending."
        Label2.Text = String.Format(spec, doneCount, _
            schedCount, pendCount)

        List1.Decoration = ListDecoration.Bulleted
    End If
End Sub
プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照

ListDecoration 列挙体

項目に追加する装飾の種類を指定します。このクラスは継承できません。

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

Dim instance As ListDecoration
public enum ListDecoration
public enum class ListDecoration
public enum ListDecoration
public enum ListDecoration
メンバメンバ
 メンバ名説明
Bulletedリスト項目を行頭文字で装飾します。 
None装飾なし。 
Numberedリスト項目を番号で装飾します。 
解説解説
プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照



英和和英テキスト翻訳

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

辞書ショートカット

すべての辞書の索引

List.Decorationのお隣キーワード
検索ランキング

   

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



List.Decorationのページの著作権

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

©2026 GRAS Group, Inc.RSS