TextMarkerStyle Enumeration

 

Describes the appearance of a list item's bullet style.

Namespace:   System.Windows
Assembly:  PresentationCore (in PresentationCore.dll)

public enum TextMarkerStyle

Member nameDescription
Box

A solid square box is displayed.

Circle

A hollow disc circle is displayed.

Decimal

A decimal is displayed, starting with the number one, for example, 1, 2, and 3. The TextMarkerStyle is automatically incremented for each item added to the list.

Disc

A solid disc circle is displayed.

LowerLatin

A lowercase ASCII character is displayed, starting with the letter a, for example, a, b, and c. The TextMarkerStyle is automatically incremented for each item added to the list.

LowerRoman

A lowercase Roman numeral is displayed, starting with the numeral i, for example, i, ii, iii, and iv. The TextMarkerStyle is automatically incremented for each item added to the list.

None

No marker is displayed.

Square

A hollow square shape is displayed.

UpperLatin

An uppercase ASCII character is displayed, starting with the letter A, for example, A, B, and C. The TextMarkerStyle is automatically incremented for each item added to the list.

UpperRoman

An uppercase Roman numeral is displayed, starting with the numeral I, for example, I, II, III, and IV. The TextMarkerStyle is automatically incremented for each item added to the list.

The MarkerStyle property of a List can be used to define the bullet style for each item in the list. The bullet style can be a graphic element or an alpha-numeric value.

The following code example shows how to create a TextMarkerStyle.

List list = new List();
list.MarkerStyle = TextMarkerStyle.Box;
<List MarkerStyle="Box">
  <ListItem>
    <Paragraph>Box</Paragraph>
  </ListItem>
</List>

.NET Framework
Available since 3.0
Return to top
Show: