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リスト項目を番号装飾します。 
解説解説
プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照


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

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

辞書ショートカット

すべての辞書の索引

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

   

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



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

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

©2025 GRAS Group, Inc.RSS