ApiExamples.ExStyles.ChangeStyleOfTOCLevel C# (CSharp) Method

ChangeStyleOfTOCLevel() private method

private ChangeStyleOfTOCLevel ( ) : void
return void
        public void ChangeStyleOfTOCLevel()
        {
            Document doc = new Document();
            //ExStart
            //ExId:ChangeTOCStyle
            //ExSummary:Changes a formatting property used in the first level TOC style.
            // Retrieve the style used for the first level of the TOC and change the formatting of the style.
            doc.Styles[StyleIdentifier.Toc1].Font.Bold = true;
            //ExEnd
        }