ASP.NET BulletStyle Property

Definition and Usage

The BulletStyle property is used to get or set the style of the list bullet points.

Syntax

<asp:BulletedList BulletStyle="style" runat="server">
some content
</asp:BulletedList>
Property Description
style

Specifies the style of the list bullet points.

Possible Values:

  • NotSet - Not Set
  • Circle - Hollow Circles
  • Disc - Solid Circles
  • Square - Solid Squares
  • Numbered - Numbers
  • LowerAlpha - Lowercase Letters
  • UpperAlpha - Uppercase Letters
  • LowerRoman - Lower Roman Numerals
  • UpperRoman - Upper Roman Numerals
  • CustomImage - Custom Image (defined by the "BulletImageUrl" property)

Example

The following example sets the BulletStyle property of the BulletedList control:

<form runat="server">
<asp:BulletedList id="bl1"
runat="server" BulletStyle="Numbered">
Some content
</asp:BulletedList>
</form>

Example

Set the BulletStyle Property of the BulletedList Control