ASP.NET BulletedList BulletStyleProperties


BulletedList 控件BulletedList Control

Definition and Usage

The BulletStyle property is used to get or set the style of the list item bullets.

Syntax

<asp:BulletedList BulletStyle="style" runat="server">
Some Content
</asp:BulletedList>

Property Description
style Specifies the style of the list item bullets.

Possible values:

  • NotSet - Not set
  • Circle - Hollow circle
  • Disc - Solid circle
  • Square - Solid square
  • Numbered - Numbers
  • LowerAlpha - Lowercase letters
  • UpperAlpha - Uppercase letters
  • LowerRoman - Lowercase Roman numerals
  • UpperRoman - Uppercase 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>

Try it Yourself »

BulletedList 控件BulletedList Control Other Extensions