List.Decoration 속성

정의

항목에 사용되는 장식 종류를 가져오거나 설정합니다. 기본값은 None입니다. 이 API는 더 이상 사용되지 않습니다. ASP.NET 모바일 애플리케이션을 개발하는 방법에 대한 자세한 내용은 ASP.NET 있는 Mobile Apps & 사이트를 참조하세요.

public:
 property System::Web::UI::MobileControls::ListDecoration Decoration { System::Web::UI::MobileControls::ListDecoration get(); void set(System::Web::UI::MobileControls::ListDecoration value); };
[System.ComponentModel.Bindable(true)]
public System.Web.UI.MobileControls.ListDecoration Decoration { get; set; }
[<System.ComponentModel.Bindable(true)>]
member this.Decoration : System.Web.UI.MobileControls.ListDecoration with get, set
Public Property Decoration As ListDecoration

속성 값

항목에 사용되는 장식 종류를 나타내는 열거형 값입니다.

특성

예제

다음 코드 예제를 사용 하는 방법을 보여 줍니다는 Decoration 번호 매기기 목록으로 목록을 변경 하는 속성입니다. 속성은 메서드의 마지막 줄에 설정됩니다 Page_Load . 이 예제는에 대 한 보다 큰 예제의 일부는 List 개요.

protected void Page_Load(object sender, EventArgs e)
{
    if (!IsPostBack)
    {
        // Set the DataMembers of the List
        List1.DataValueField = "Status";
        List1.DataTextField = "TaskName";

        // Create an ArrayList of task data
        ArrayList arr = 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 string spec = "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;
    }
}
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 열거형에는 다음 값이 있습니다.

Name Description
None 장식하지 않습니다.
Bulleted 목록 항목을 글머리 기호로 장식합니다.
Numbered 목록 항목을 번호로 장식합니다.

적용 대상

추가 정보