Latest web development tutorials

ASP.NET BulletedList BulletStyle property

BulletedList control BulletedList control

Definition and Usage

BulletStyle property is used to get or set the list of items symbol styles.

grammar

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

属性 描述
style 规定列表项目符号的样式。

可能的值:

  • NotSet - 未设置
  • Circle - 空心圆
  • Disc - 实心圆
  • Square - 实心方块
  • Numbered - 数字
  • LowerAlpha - 小写字母
  • UpperAlpha - 大写字母
  • LowerRoman - 小写罗马数字
  • UpperRoman - 大写罗马数字
  • CustomImage - 定制图像(由 "BulletImageUrl" 属性定义)


Examples

The following examples set BulletStyle property BulletedList control:

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

Some content

</asp:BulletedList>
</form>

The demonstration >>

BulletedList control BulletedList control