ListDecoration Enumeration
Specifies the type of decoration to be added to list items. This class cannot be inherited.
public sealed enum System.Web.UI.MobileControls.ListDecoration :
System.Enum
Remarks
The ListDecoration enumeration represents how you will specify decoration for a list, as bullets, numbers, or no decoration at all. In ASP.NET, you specify the type of decoration for a list by setting the Decoration property. The following ASP.NET code fragment shows a List control decorated with bullets.
<mobile:List
runat="server"
Decoration="Bulleted">
Add list items here.
</mobile:List>
Members
Member name | Description |
---|---|
None | No decoration. |
Bulleted | List items are decorated with a bullet. |
Numbered | List items are decorated with a number. |
Example
This example displays a bulleted list of the planets in the solar system.
[C#]
private void Form1_Activate(object sender, System.EventArgs e)
{
Label1.Text = "The Nine Planets of the Solar System";
List1.Decoraction = ListDecoration.Bulleted;
List1.Items.Add("Mercury");
List1.Items.Add("Venus");
List1.Items.Add("Earth");
List1.Items.Add("Mars");
List1.Items.Add("Jupiter");
List1.Items.Add("Saturn");
List1.Items.Add("Uranus");
List1.Items.Add("Neptune");
List1.Items.Add("Pluto");
}
Requirements
Namespace: System.Web.UI.MobileControls
Assembly: System.Web.Mobile
See Also
System.Web.UI.MobileControls Namespace