<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://communities.bentley.com/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><title>How To use Text Styling to Make part of the Geology  Description Bold</title><link>https://communities.bentley.com/products/geotechnical1/w/wiki/50032/how-to-use-text-styling-to-make-part-of-the-geology-description-bold</link><description /><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>How To use Text Styling to Make part of the Geology  Description Bold</title><link>https://communities.bentley.com/products/geotechnical1/w/wiki/50032/how-to-use-text-styling-to-make-part-of-the-geology-description-bold</link><pubDate>Wed, 10 Jun 2020 01:29:23 GMT</pubDate><guid isPermaLink="false">6dad98f5-dbc9-4c4d-a9ba-e9da8dc6aa8e:c5aacf49-d8c4-4d9f-a514-8383e17abb88</guid><dc:creator>wiki.author</dc:creator><comments>https://communities.bentley.com/products/geotechnical1/w/wiki/50032/how-to-use-text-styling-to-make-part-of-the-geology-description-bold#comments</comments><description>Current Revision posted to gINT | Keynetix Wiki by wiki.author on 6/10/2020 1:29:23 AM&lt;br /&gt;
&lt;table style="border:0px solid #dce5f0;background-color:#dce5f0;" border="0"&gt;
	&lt;tbody&gt;
		&lt;tr&gt;
			&lt;td style="text-align:right;"&gt;&lt;strong&gt;&amp;nbsp;&lt;/strong&gt;&lt;/td&gt;
			&lt;td style="text-align:right;"&gt;&lt;strong&gt;Product(s):&lt;/strong&gt;&lt;/td&gt;
			&lt;td&gt;Keynetix&lt;/td&gt;
			&lt;td&gt;&lt;/td&gt;
		&lt;/tr&gt;
		&lt;tr&gt;
			&lt;td style="text-align:right;"&gt;&lt;strong&gt;&amp;nbsp;&lt;/strong&gt;&lt;/td&gt;
			&lt;td style="text-align:right;"&gt;&lt;strong&gt;Version(s):&lt;/strong&gt;&lt;/td&gt;
			&lt;td&gt;1.0&lt;/td&gt;
			&lt;td&gt;&lt;/td&gt;
		&lt;/tr&gt;		
		&lt;tr&gt;
			&lt;td style="text-align:right;"&gt;&lt;strong&gt;&amp;nbsp;&lt;/strong&gt;&lt;/td&gt;
			&lt;td style="text-align:right;"&gt;&lt;strong&gt;Area:&lt;/strong&gt;&lt;/td&gt;
			&lt;td&gt;Assist&lt;/td&gt;
			&lt;td&gt;&lt;/td&gt;
		&lt;/tr&gt;		
	&lt;/tbody&gt;
&lt;/table&gt; &lt;br /&gt; 
  
    &lt;p&gt;&lt;/p&gt;
  
  
    &lt;h1&gt;How To use Text Styling to Make part of the Geology  Description Bold&lt;/h1&gt;
    &lt;h2&gt;Explanation&lt;/h2&gt;
    &lt;p&gt;The default expression that is used in Template Studio to bring out the geology description also brings out the geology code. We are often asked how to make this code be bold so that it stands out. We can do this using the text style function.&lt;/p&gt;
    &lt;h2&gt;Process&lt;/h2&gt;
    &lt;p&gt;The default expression that comes out of the geology description item in Template Studio is as follows;&lt;/p&gt;
    &lt;p&gt;
      &lt;strong&gt;[StratumDetails.Description]+if(len([StratumDetails.Description]) &amp;gt; 0 and len([StratumDetails.GeologyCode]) &amp;gt; 0,&amp;#39;&amp;#39;,&amp;#39; &amp;#39;)+&lt;span style="color:#ff0000;"&gt;&amp;#39;(&amp;#39;+[StratumDetails.GeologyCode]+&amp;#39;)&amp;#39;&lt;/span&gt;&lt;/strong&gt;
    &lt;/p&gt;
    &lt;p&gt;The part that is in red above is the part that will bring out the geology code.&lt;/p&gt;
    &lt;p&gt;To change this to bold we will place this inside of the textstyle function as below;&lt;/p&gt;
    &lt;p&gt;
      &lt;strong&gt;textStyle(&amp;#39;(&amp;#39;+[StratumDetails.GeologyCode]+&amp;#39;)&amp;#39;,&amp;#39;900&amp;#39;,&amp;#39;Normal&amp;#39;,&amp;#39;000000&amp;#39;)&lt;/strong&gt;
    &lt;/p&gt;
    &lt;p&gt;This will effect only the text above, the rest of the description will appear as normal. The full expression will be as below;&lt;/p&gt;
    &lt;p&gt;
      &lt;strong&gt;[StratumDetails.Description]+if(len([StratumDetails.Description]) &amp;gt; 0 and len([StratumDetails.GeologyCode]) &amp;gt; 0,&amp;#39;&amp;#39;,&amp;#39; &amp;#39;)+textStyle(&amp;#39;(&amp;#39;+[StratumDetails.GeologyCode]+&amp;#39;)&amp;#39;,&amp;#39;900&amp;#39;,&amp;#39;Normal&amp;#39;,&amp;#39;000000&amp;#39;)&lt;/strong&gt;
    &lt;/p&gt;
    &lt;p&gt;This would appear as this on the template;&lt;/p&gt;
    &lt;p&gt;
      &lt;img src="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-01-05/textstyle.png" alt=" " /&gt;
    &lt;/p&gt;
    &lt;h2&gt;Further Information&lt;/h2&gt;
    &lt;p&gt;For more information on all of the stylings that can be applied by the textstyle function including colouring, please see the article on text styling in the user guide https://communities.bentley.com/cfs-file/__key/communityserver-wikis-components-files/00-00-00-01-05/8484.MissingImage.png.&lt;/p&gt;
    &lt;p&gt;&lt;/p&gt;
  
&lt;div style="clear:both;"&gt;&lt;/div&gt;

&lt;div style="font-size: 90%;"&gt;Tags: Migrated&lt;/div&gt;
</description></item></channel></rss>