<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>Documentation – Excel Themes and Colors with Golang via C&#43;&#43;</title>
    <link>https://docs.aspose.com/cells/go-cpp/excel-themes-and-colors/</link>
    <description>Recent content in Excel Themes and Colors with Golang via C&#43;&#43; on Documentation</description>
    <generator>Hugo -- gohugo.io</generator>
    <language>en</language>
    
	  <atom:link href="https://docs.aspose.com/cells/go-cpp/excel-themes-and-colors/index.xml" rel="self" type="application/rss+xml" />
    
    
      
        
      
    
    
    <item>
      <title>Gocpp: Extract Theme Data from Excel File with Golang via C&#43;&#43;</title>
      <link>https://docs.aspose.com/cells/go-cpp/extract-theme-data-from-excel-file/</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      
      <guid>https://docs.aspose.com/cells/go-cpp/extract-theme-data-from-excel-file/</guid>
      <description>
        
        
        

&lt;div class=&#34;alert alert-primary&#34; role=&#34;alert&#34;&gt;

&lt;p&gt;Aspose.Cells allows users to extract theme‑related data from an Excel file. For example, you can extract the theme name applied to the workbook and the theme color applied to a cell or the cell&amp;rsquo;s borders, etc.&lt;/p&gt;
&lt;p&gt;You can apply a theme to your workbook using Microsoft Excel via &lt;strong&gt;Page Layout &amp;gt; Themes&lt;/strong&gt; command.&lt;/p&gt;

&lt;/div&gt;

&lt;h2 id=&#34;c-code-to-extract-theme-data-from-excel-file&#34;&gt;C++ code to extract theme data from Excel file&lt;/h2&gt;
&lt;p&gt;The following sample code extracts the theme name applied to the source workbook and then extracts the theme color applied to cell &lt;strong&gt;A1&lt;/strong&gt; and the theme color applied to the bottom border of the cell.&lt;/p&gt;
&lt;script type=&#34;application/javascript&#34; src=&#34;https://gist.github.com/aspose-cells-gists/b414abd53259bbc47d2c3c0fe985395b.js?file=Examples-Go-CPP-ExtractThemeDataFromExcelFile.go&#34;&gt;&lt;/script&gt;


      </description>
    </item>
    
    <item>
      <title>Gocpp: Headings And Body Theme Font with Golang via C&#43;&#43;</title>
      <link>https://docs.aspose.com/cells/go-cpp/headings-and-body-theme-font/</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      
      <guid>https://docs.aspose.com/cells/go-cpp/headings-and-body-theme-font/</guid>
      <description>
        
        
        

&lt;div class=&#34;alert alert-primary&#34; role=&#34;alert&#34;&gt;

&lt;p&gt;The default font will automatically change when the region setting is changed.&lt;/p&gt;
&lt;p&gt;If the default font is changed, the row height and column width are also changed, and it may even mess up the page layout.&lt;/p&gt;
&lt;p&gt;What causes the default font to change?&lt;/p&gt;
&lt;p&gt;If the Excel theme font is set, Excel will automatically switch between different fonts based on the current language environment.&lt;/p&gt;

&lt;/div&gt;

&lt;h2 id=&#34;headings-and-body-theme-font-in-excel&#34;&gt;&lt;strong&gt;Headings And Body Theme Font In Excel&lt;/strong&gt;&lt;/h2&gt;
&lt;p&gt;In Excel, select the Home tab, click on the font dropdown box, you will see &amp;ldquo;Theme Fonts&amp;rdquo; with two theme fonts: Calibri Light (Headings) and Calibri (Body) on the top with English region setting.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;&lt;img src=&#34;Theme-Fonts.png&#34; alt=&#34;Theme Fonts&#34;&gt;&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;If Theme Font is selected, the font name will display differently in different regions.&lt;br&gt;
If you do not want the font to be automatically changed in different regions, don&amp;rsquo;t select the two Theme Fonts.&lt;/p&gt;
&lt;h2 id=&#34;changing-headings-and-body-font-programmatically&#34;&gt;&lt;strong&gt;Changing Headings And Body Font Programmatically&lt;/strong&gt;&lt;/h2&gt;
&lt;p&gt;With Aspose.Cells for C++, we can check whether the default font is a theme font or set the theme font with the &lt;a href=&#34;https://reference.aspose.com/cells/go-cpp/font/getschemetype/&#34;&gt;&lt;strong&gt;Font.GetSchemeType()&lt;/strong&gt;&lt;/a&gt; property.&lt;/p&gt;
&lt;p&gt;The following sample code shows how to manipulate theme font.&lt;/p&gt;
&lt;script type=&#34;application/javascript&#34; src=&#34;https://gist.github.com/aspose-cells-gists/b414abd53259bbc47d2c3c0fe985395b.js?file=Examples-Go-CPP-MajorMinorFont.go&#34;&gt;&lt;/script&gt;

&lt;h2 id=&#34;dynamically-gets-local-theme-font-programmatically&#34;&gt;&lt;strong&gt;Dynamically Gets Local Theme Font Programmatically&lt;/strong&gt;&lt;/h2&gt;
&lt;p&gt;Sometimes, our servers and users&#39; machines are not in the same region. How can we obtain the same font that users want for file processing?&lt;/p&gt;
&lt;p&gt;We have to set the system regional settings before loading the file with the &lt;a href=&#34;https://reference.aspose.com/cells/go-cpp/loadoptions/getregion/&#34;&gt;&lt;strong&gt;LoadOptions.GetRegion()&lt;/strong&gt;&lt;/a&gt; property.&lt;/p&gt;
&lt;p&gt;The following sample code shows how to get the local theme font.&lt;/p&gt;
&lt;script type=&#34;application/javascript&#34; src=&#34;https://gist.github.com/aspose-cells-gists/b414abd53259bbc47d2c3c0fe985395b.js?file=Examples-Go-CPP-MajorMinorFont-1.go&#34;&gt;&lt;/script&gt;


      </description>
    </item>
    
  </channel>
</rss>
