Aspose.Words.Examples.CSharp.Programming_Documents.Working_with_Styles.ChangeStyleOfTOCLevel.Run C# (CSharp) Метод

Run() публичный статический Метод

public static Run ( ) : void
Результат void
        public static void Run()
        {
            // ExStart:ChangeStyleOfTOCLevel
            Document doc = new Document();            
            // 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:ChangeStyleOfTOCLevel 
            Console.WriteLine("\nTOC level style changed successfully.");
        }        
    }
ChangeStyleOfTOCLevel