static void CreateBulletedList(Document document)
        {
            #region #CreateBulletedList
            document.LoadDocument("Documents//List.docx");
            document.BeginUpdate();

            // Create a new list pattern object
            AbstractNumberingList list = document.AbstractNumberingLists.Add();

            //Specify the list's type
            list.NumberingType = NumberingType.Bullet;
            ListLevel level = list.Levels[0];
            level.ParagraphProperties.LeftIndent = 100;

            //Specify the bullets' format
            //Without this step, the list is considered as numbered
            level.DisplayFormatString          = "\u00B7";
            level.CharacterProperties.FontName = "Symbol";

            //Create a new list based on the specific pattern
            NumberingList bulletedList = document.NumberingLists.Add(0);

            // Add paragraphs to the list
            ParagraphCollection paragraphs = document.Paragraphs;
            paragraphs.AddParagraphsToList(document.Range, bulletedList, 0);

            document.EndUpdate();
            #endregion #CreateBulletedList
        }
        static void CreateNumberedList(Document document)
        {
            #region #CreateNumberedList
            document.LoadDocument("Documents//List.docx");
            document.BeginUpdate();

            //Create a new pattern object
            AbstractNumberingList abstractListNumberingRoman = document.AbstractNumberingLists.Add();

            //Specify the list's type
            abstractListNumberingRoman.NumberingType = NumberingType.Simple;

            //Define the first level's properties
            ListLevel level = abstractListNumberingRoman.Levels[0];
            level.ParagraphProperties.LeftIndent          = 150;
            level.ParagraphProperties.FirstLineIndentType = ParagraphFirstLineIndent.Hanging;
            level.ParagraphProperties.FirstLineIndent     = 75;
            level.Start = 1;

            //Specify the roman format
            level.NumberingFormat     = NumberingFormat.LowerRoman;
            level.DisplayFormatString = "{0}.";

            //Create a new list based on the specific pattern
            NumberingList numberingList = document.NumberingLists.Add(0);

            document.EndUpdate();

            document.BeginUpdate();
            ParagraphCollection paragraphs = document.Paragraphs;
            //Add paragraphs to the list
            paragraphs.AddParagraphsToList(document.Range, numberingList, 0);
            document.EndUpdate();
            #endregion #CreateNumberedList
        }
        private int GetNextListIndex(Document document, int currentAbstractIndex, Paragraph previousParagraph)
        {
            currentAbstractIndex++;

            if (currentAbstractIndex == document.AbstractNumberingLists.Count)
            {
                return(-1);
            }
            else
            {
                if (previousParagraph != null && currentAbstractIndex == GetParagraphAbstractIndex(document, previousParagraph))
                {
                    return(previousParagraph.ListIndex);
                }

                NumberingList newList = document.NumberingLists.Add(currentAbstractIndex);

                newList.Levels[0].SetOverrideStart(true);
                newList.Levels[0].NewStart = 1;

                return(newList.Index);
            }
        }
        private void btnSimpleBullet_Click(object sender, EventArgs e)
        {
            Document doc = richEditControl1.Document;

            doc.BeginUpdate();
            NumberingList numberingList = doc.NumberingLists.Add(0);
            int           listIndex     = numberingList.Index;

            // Append list items
            AppendListParagraph(doc, "Level0 Par0", 0, 0, listIndex);
            AppendListParagraph(doc, "Level0 Par1", 1, 0, listIndex);
            AppendListParagraph(doc, "Level0 Par2", 2, 0, listIndex);
            AppendListParagraph(doc, "Level1 Par3", 3, 1, listIndex);
            AppendListParagraph(doc, "Level1 Par4", 4, 1, listIndex);
            AppendListParagraph(doc, "Level2 Par5", 5, 2, listIndex);
            AppendListParagraph(doc, "Level2 Par6", 6, 2, listIndex);
            AppendListParagraph(doc, "Level0 Par7", 7, 0, listIndex);
            AppendListParagraph(doc, "Level1 Par8", 8, 1, listIndex);
            AppendListParagraph(doc, "Level1 Par9", 9, 1, listIndex);
            AppendListParagraph(doc, "Level0 Par10", 10, 0, listIndex);
            doc.Paragraphs.Append();
            doc.EndUpdate();
        }