BulletedList.BulletStyle Property

Gets or sets the bullet style for the BulletedList control.

Namespace: System.Web.UI.WebControls
Assembly: System.Web (in system.web.dll)

public:
virtual property BulletStyle BulletStyle {
	BulletStyle get ();
	void set (BulletStyle value);
}
/** @property */
public BulletStyle get_BulletStyle ()

/** @property */
public void set_BulletStyle (BulletStyle value)

public function get BulletStyle () : BulletStyle

public function set BulletStyle (value : BulletStyle)

Not applicable.

Property Value

One of the BulletStyle values. The default is NotSet.

Exception typeCondition

ArgumentOutOfRangeException

The specified type is not one of the BulletStyle values.

Use the BulletStyle property to specify the bullet style to apply to the list items in a BulletedList control. The BulletStyle property is set using one of the BulletStyle enumeration values. The following table lists the possible values.

Bullet style

Description

NotSet

Not set.

Numbered

A number.

LowerAlpha

A lowercase letter.

UpperAlpha

An uppercase letter.

LowerRoman

A lowercase Roman numeral.

UpperRoman

An uppercase Roman numeral.

Disc

A filled circle.

Circle

An empty circle.

Square

A filled square.

CustomImage

A custom image.

Specifying the CustomImage value allows you to supply your own image for the bullet. If you specify the CustomImage value, you must also set the BulletImageUrl property to the URL of the custom image to use.

NoteNote:

The BulletedList control does not support the AlternateText property because the bullets are inherently decorative and do not provide additional information that needs to be conveyed via assistive technology. However, if you want to use a custom image to convey a concept to the user, you should add additional text to each of the bulleted list items or use a control that allows you to specify alternate text for each image.

The value of this property is stored in view state.

The following code example demonstrates how to create a BulletedList control. A ListBox control is populated with all the available BulletStyle enumeration values. The bullet style changes based on the style that the user selects from the list box.

No code example is currently available or this language may not be supported.

Windows 98, Windows Server 2000 SP4, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

.NET Framework

Supported in: 3.0, 2.0

Community Additions

ADD
Show: