List.Decoration プロパティ
アセンブリ: 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: 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

Windows 98, Windows 2000 SP4, Windows Millennium Edition, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition
開発プラットフォームの中には、.NET Framework によってサポートされていないバージョンがあります。サポートされているバージョンについては、「システム要件」を参照してください。


ListDecoration 列挙体
アセンブリ: System.Web.Mobile (system.web.mobile.dll 内)

Public Enumeration ListDecoration


ListDecoration 列挙定数では、リストの装飾として行頭文字、番号、装飾なしのいずれかを指定します。ASP.NET では、Decoration プロパティを設定してリストの装飾の種類を指定できます。

Windows 98, Windows 2000 SP4, Windows Millennium Edition, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition
開発プラットフォームの中には、.NET Framework によってサポートされていないバージョンがあります。サポートされているバージョンについては、「システム要件」を参照してください。


Weblioに収録されているすべての辞書からList.Decorationを検索する場合は、下記のリンクをクリックしてください。

- List.Decorationのページへのリンク