Expand Minimize

TextMarkerStyle Enumeration

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

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

public enum TextMarkerStyle
<object property="enumerationMemberName" .../>

Member nameDescription
BoxA solid square box is displayed.
CircleA hollow disc circle is displayed.
DecimalA 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.
DiscA solid disc circle is displayed.
LowerLatinA 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.
LowerRomanA 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.
NoneNo marker is displayed.
SquareA hollow square shape is displayed.
UpperLatinAn 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.
UpperRomanAn 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

Supported in: 4.5.2, 4.5.1, 4.5, 4, 3.5, 3.0

.NET Framework Client Profile

Supported in: 4, 3.5 SP1

Windows 8.1, Windows Server 2012 R2, Windows 8, Windows Server 2012, Windows 7, Windows Vista SP2, Windows Server 2008 (Server Core Role not supported), Windows Server 2008 R2 (Server Core Role supported with SP1 or later; Itanium not supported)

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft