Aspose.Words.Examples.CSharp.Programming_Documents.Working_with_Theme.ManipulateThemeProperties.SetThemeProperties C# (CSharp) Метод

SetThemeProperties() приватный статический метод

Shows how to set theme properties.
private static SetThemeProperties ( string dataDir ) : void
dataDir string
Результат void
        private static void SetThemeProperties(string dataDir)
        {
            // ExStart:SetThemeProperties
            Document doc = new Document(dataDir);
            Theme theme = doc.Theme;
            // Set Times New Roman font as Body theme font for Latin Character.
            theme.MinorFonts.Latin = "Times New Roman";
            // Set Color.Gold for theme color Hyperlink.
            theme.Colors.Hyperlink = Color.Gold;            
            // ExEnd:SetThemeProperties 
        }
    }