List list = new List(); list.MarkerStyle = TextMarkerStyle.Disc; list.ListItems.Add(new ListItem(new Paragraph(new Run("Item 1")))); list.ListItems.Add(new ListItem(new Paragraph(new Run("Item 2"))));
List list = new List(); list.MarkerStyle = TextMarkerStyle.Decimal; list.ListItems.Add(new ListItem(new Paragraph(new Run("Item 1")))); list.ListItems.Add(new ListItem(new Paragraph(new Run("Item 2"))));These examples use the List class to create a new list object, define the list style (either as bullets or numbers), and then add items to the list. The System.Windows.Documents namespace is part of the .NET Framework, which is a package library provided by Microsoft for developing Windows-based applications.