BulletStyle Enumeration
Specifies the bullet styles you can apply to list items in a BulletedList control.
Assembly: System.Web (in System.Web.dll)
| Member name | Description | |
|---|---|---|
| NotSet | The bullet style is not set. The browser that renders the BulletedList control will determine the bullet style to display. | |
| Numbered | The bullet style is a number (1, 2, 3, ...). | |
| LowerAlpha | The bullet style is a lowercase letter (a, b, c, ...). | |
| UpperAlpha | The bullet style is an uppercase letter (A, B, C, ...). | |
| LowerRoman | The bullet style is a lowercase Roman numeral (i, ii, iii, ...). | |
| UpperRoman | The bullet style is an uppercase Roman numeral (I, II, III, ...). | |
| Disc | The bullet style is a filled circle shape. | |
| Circle | The bullet style is an empty circle shape. | |
| Square | The bullet style is a filled square shape. | |
| CustomImage | The bullet style is a custom image. |
The BulletStyle enumeration represents the bullet styles that you can apply to the list items in a BulletedList control. The BulletStyle property uses these enumeration values to set the bullet styles in a BulletedList control. For example, if you set the BulletStyle property to Disc, each list item in a BulletedList control will render a filled circle preceding the content of the list item as follows:
List Item 1
List Item 2
List Item 3
Specifying the CustomImage bullet style allows you to supply your own image for the bullet. If you specify the CustomImage bullet style, you must also set the BulletImageUrl property to the URL of the custom image to use.
If you specify NotSet, the browser in which the control is rendered will determine the bullet style to display with the list items in the BulletedList control.
| Topic | Location |
|---|---|
| How to: Add BulletedList Web Server Controls to a Web Forms Page (Visual Studio) | Building ASP .NET Web Applications in Visual Studio |
The following example demonstrates how to create a BulletedList control. A ListBox control is populated with all available BulletStyle enumeration values. The bullet style changes based on the style that the user selects from the list box.
Windows 7, Windows Vista, Windows XP SP2, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP Starter Edition, Windows Server 2008 R2, Windows Server 2008, Windows Server 2003, Windows Server 2000 SP4, Windows Millennium Edition, Windows 98
The .NET Framework and .NET Compact Framework do not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.