Decoration Property
Sets or returns the type of decoration used for items. The default value is none.
public System.Web.UI.MobileControls.ListDecoration Decoration {
get,
set
}
Remarks
Where the target device permits, list items can be undecorated, or decorated with bullets or numbers. The ListDecoration enumeration has the following values.
Name | Description |
---|---|
None | No decoration. |
Bulleted | List items are decorated with a bullet. |
Numbered | List items are decorated with a number. |
Example
The following example demonstrates how to use the Decoration property to change the list to a numbered list.
If Not IsPostBack Then
List1.Decoration = ListDecoration.Numbered
End If
[C#]
public void Page_Load(Object sender, EventArgs e)
{
if (!IsPostBack)
{
List1.Decoration = ListDecoration.Numbered;
}
}
See Also
Applies to: List Class