<?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>Text Styling</title><link>https://communities.bentley.com/products/geotechnical1/w/openground-wiki/60286/text-styling</link><description /><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>Text Styling</title><link>https://communities.bentley.com/products/geotechnical1/w/openground-wiki/60286/text-styling</link><pubDate>Fri, 03 Mar 2023 16:18:00 GMT</pubDate><guid isPermaLink="false">6dad98f5-dbc9-4c4d-a9ba-e9da8dc6aa8e:fd919d19-4711-4a18-bfe4-221bf613af37</guid><dc:creator>Stephen Evason</dc:creator><comments>https://communities.bentley.com/products/geotechnical1/w/openground-wiki/60286/text-styling#comments</comments><description>Current Revision posted to OpenGround Wiki by Stephen Evason on 3/3/2023 4:18:00 PM&lt;br /&gt;
&lt;p class="p"&gt;&lt;span class="ph"&gt;Template Studio&lt;/span&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;allows for text to be styled within an expression. This allows for more than one style to be applied to one item (separating parts of the text) and also allows finer control then is available from within the ribbon interface. This function is the textStyle function.&lt;/p&gt;
&lt;p class="p"&gt;The format for this is as follows:&lt;/p&gt;
&lt;p class="p"&gt;textStyle(&amp;#39;My Text&amp;#39;,&amp;#39;Font Weight&amp;#39;,&amp;#39;Font Style&amp;#39;,&amp;#39;Font Colour&amp;#39;)&lt;/p&gt;
&lt;p class="p"&gt;e.g;textStyle(&amp;#39;My Text&amp;#39;,&amp;#39;900&amp;#39;,&amp;#39;Italic&amp;#39;,&amp;#39;FF0000&amp;#39;)&lt;/p&gt;
&lt;p class="p"&gt;The parts of this function work as follows:&lt;/p&gt;
&lt;p class="p"&gt;My Text - This is the text that is to be displayed on the log, this can be either plain text or can be any function that is compatible with&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;span class="ph"&gt;Template Studio&lt;/span&gt;.&lt;/p&gt;
&lt;p class="p"&gt;Font Weight - This is how heavy the text appears, on a scale 1 to 999, where 300 is Normal and 700 is Bold.&lt;/p&gt;
&lt;p class="p"&gt;Font Style - This is the style of the text; Normal/Italic/Oblique.&lt;/p&gt;
&lt;p class="p"&gt;Font Colour - This is the colour of the text in hexidecimal format (This includes transparency). Patterns supported are either RGB or ARGB formats such as FF0000 - red 00FF00 - green, 0000FF - blue and 880000FF is half transparent blue. An explanation of how this works can be found on Wikipedia &lt;a href="https://en.wikipedia.org/wiki/RGBA_color_model"&gt;here&lt;/a&gt; and a colour chart, useful for finding codes can be seen below.&lt;/p&gt;
&lt;p&gt;Note - All arguments are required. For example, if you just want to bold text but not change the style or color, the expression would be:&lt;/p&gt;
&lt;p&gt;&lt;span&gt;textStyle(&amp;#39;My Text&amp;#39;,&amp;#39;700&amp;#39;,&amp;#39;Normal&amp;#39;,&amp;#39;000000&amp;#39;)&lt;/span&gt;&lt;/p&gt;
&lt;div id="GUID-31CE8C4D-16B6-4928-BFF8-46DC6D031AFB__FIG_03CD90A89D324FD5B36BA2D6AB8AF031" class="fig fignone"&gt;&lt;img alt=" " src="/resized-image/__size/320x240/__key/communityserver-wikis-components-files/00-00-00-06-06/pastedimage1653999302334v1.jpeg" /&gt;&lt;span class="figdesc"&gt;&lt;/span&gt;&lt;/div&gt;
&lt;p class="p"&gt;Examples can be seen below:&lt;/p&gt;
&lt;p class="p"&gt;textStyle(ConcatenateWith(&amp;#39;-&amp;#39;,[SampleInformation.Type],[SampleInformation.SampleReference]),&amp;#39;900&amp;#39;,&amp;#39;Italic&amp;#39;,&amp;#39;FF0000&amp;#39;)Would combine the sample type and reference in bold, italic, red text.&lt;/p&gt;
&lt;div id="GUID-31CE8C4D-16B6-4928-BFF8-46DC6D031AFB__FIG_8C3E4E5F9C6B4B10AD7A19A44CFB29AF" class="fig fignone"&gt;&lt;img alt=" " src="/resized-image/__size/320x240/__key/communityserver-wikis-components-files/00-00-00-06-06/pastedimage1653999302335v2.jpeg" /&gt;&lt;span class="figdesc"&gt;&lt;/span&gt;&lt;/div&gt;
&lt;p class="p"&gt;textStyle(&amp;#39;Client: &amp;#39;,&amp;#39;100&amp;#39;,&amp;#39;Oblique&amp;#39;,&amp;#39;0000FF&amp;#39;)+textStyle([Project.ClientName],&amp;#39;900&amp;#39;,&amp;#39;Italic&amp;#39;,&amp;#39;FF0000&amp;#39;)&lt;/p&gt;
&lt;p class="p"&gt;Would show the text &amp;#39;Client:&amp;#39; in blue oblique text and then the client name in bold, red, italic text.&lt;/p&gt;
&lt;div id="GUID-31CE8C4D-16B6-4928-BFF8-46DC6D031AFB__FIG_D47483CE491E43248DD73549FD663587" class="fig fignone"&gt;&lt;img alt=" " src="/resized-image/__size/320x240/__key/communityserver-wikis-components-files/00-00-00-06-06/pastedimage1653999302335v3.jpeg" /&gt;&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;
</description></item><item><title>Text Styling</title><link>https://communities.bentley.com/products/geotechnical1/w/openground-wiki/60286/text-styling/revision/2</link><pubDate>Mon, 19 Dec 2022 15:10:15 GMT</pubDate><guid isPermaLink="false">6dad98f5-dbc9-4c4d-a9ba-e9da8dc6aa8e:fd919d19-4711-4a18-bfe4-221bf613af37</guid><dc:creator>Jesse Greenwald</dc:creator><comments>https://communities.bentley.com/products/geotechnical1/w/openground-wiki/60286/text-styling#comments</comments><description>Revision 2 posted to OpenGround Wiki by Jesse Greenwald on 12/19/2022 3:10:15 PM&lt;br /&gt;
&lt;p class="p"&gt;&lt;span class="ph"&gt;Template Studio&lt;/span&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;allows for text to be styled within an expression. This allows for more than one style to be applied to one item (separating parts of the text) and also allows finer control then is available from within the ribbon interface. This function is the textStyle function.&lt;/p&gt;
&lt;p class="p"&gt;The format for this is as follows:&lt;/p&gt;
&lt;p class="p"&gt;textStyle(&amp;#39;My Text&amp;#39;,&amp;#39;Font Weight&amp;#39;,&amp;#39;Font Style&amp;#39;,&amp;#39;Font Colour&amp;#39;)&lt;/p&gt;
&lt;p class="p"&gt;e.g;textStyle(&amp;#39;My Text&amp;#39;,&amp;#39;900&amp;#39;,&amp;#39;Italic&amp;#39;,&amp;#39;FF0000&amp;#39;)&lt;/p&gt;
&lt;p class="p"&gt;The parts of this function work as follows:&lt;/p&gt;
&lt;p class="p"&gt;My Text - This is the text that is to be displayed on the log, this can be either plain text or can be any function that is compatible with&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;span class="ph"&gt;Template Studio&lt;/span&gt;.&lt;/p&gt;
&lt;p class="p"&gt;Font Weight - This is how heavy the text appears, on a scale 1 to 999, where 300 is Normal and 700 is Bold.&lt;/p&gt;
&lt;p class="p"&gt;Font Style - This is the style of the text; Normal/Italic/Oblique.&lt;/p&gt;
&lt;p class="p"&gt;Font Colour - This is the colour of the text in hexidecimal format (This includes transparency). Patterns supported are either RGB or ARGB formats such as FF0000 - red 00FF00 - green, 0000FF - blue and 880000FF is half transparent blue. An explanation of how this works can be found on Wikipedia &lt;a href="https://en.wikipedia.org/wiki/RGBA_color_model"&gt;here&lt;/a&gt; and a colour chart, useful for finding codes can be seen below.&lt;/p&gt;
&lt;p&gt;Note - All arguments are required. For example, if you just want to bold text but not change the style or color, the expression would be:&lt;/p&gt;
&lt;p&gt;&lt;span&gt;textStyle(&amp;#39;My Text&amp;#39;,&amp;#39;700&amp;#39;,&amp;#39;Normal&amp;#39;,&amp;#39;000000&amp;#39;)&lt;/span&gt;&lt;/p&gt;
&lt;div id="GUID-31CE8C4D-16B6-4928-BFF8-46DC6D031AFB__FIG_03CD90A89D324FD5B36BA2D6AB8AF031" class="fig fignone"&gt;&lt;img alt=" " src="/resized-image/__size/320x240/__key/communityserver-wikis-components-files/00-00-00-06-06/pastedimage1653999302334v1.jpeg" /&gt;&lt;span class="figdesc"&gt;&lt;/span&gt;&lt;/div&gt;
&lt;p class="p"&gt;Examples can be seen below:&lt;/p&gt;
&lt;p class="p"&gt;textStyle(ConcatenateWith(&amp;#39;-&amp;#39;,[SampleInformation.Type],[SampleInformation.SampleReference]),&amp;#39;900&amp;#39;,&amp;#39;Italic&amp;#39;,&amp;#39;FF0000&amp;#39;)Would combine the sample type and reference in bold, italic, red text.&lt;/p&gt;
&lt;div id="GUID-31CE8C4D-16B6-4928-BFF8-46DC6D031AFB__FIG_8C3E4E5F9C6B4B10AD7A19A44CFB29AF" class="fig fignone"&gt;&lt;img alt=" " src="/resized-image/__size/320x240/__key/communityserver-wikis-components-files/00-00-00-06-06/pastedimage1653999302335v2.jpeg" /&gt;&lt;span class="figdesc"&gt;&lt;/span&gt;&lt;/div&gt;
&lt;p class="p"&gt;textStyle(&amp;#39;Client: &amp;#39;,&amp;#39;100&amp;#39;,&amp;#39;Oblique&amp;#39;,&amp;#39;0000FF&amp;#39;)+textStyle([Project.ClientName],&amp;#39;900&amp;#39;,&amp;#39;Italic&amp;#39;,&amp;#39;FF0000&amp;#39;)&lt;/p&gt;
&lt;p class="p"&gt;Would show the text &amp;#39;Client:&amp;#39; in blue oblique text and then the client name in bold, red, italic text.&lt;/p&gt;
&lt;div id="GUID-31CE8C4D-16B6-4928-BFF8-46DC6D031AFB__FIG_D47483CE491E43248DD73549FD663587" class="fig fignone"&gt;&lt;img alt=" " src="/resized-image/__size/320x240/__key/communityserver-wikis-components-files/00-00-00-06-06/pastedimage1653999302335v3.jpeg" /&gt;&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;
</description></item><item><title>Text Styling</title><link>https://communities.bentley.com/products/geotechnical1/w/openground-wiki/60286/text-styling/revision/1</link><pubDate>Tue, 31 May 2022 12:17:59 GMT</pubDate><guid isPermaLink="false">6dad98f5-dbc9-4c4d-a9ba-e9da8dc6aa8e:fd919d19-4711-4a18-bfe4-221bf613af37</guid><dc:creator>Stephen Evason</dc:creator><comments>https://communities.bentley.com/products/geotechnical1/w/openground-wiki/60286/text-styling#comments</comments><description>Revision 1 posted to OpenGround Wiki by Stephen Evason on 5/31/2022 12:17:59 PM&lt;br /&gt;
&lt;p class="p"&gt;&lt;span class="ph"&gt;Template Studio&lt;/span&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;allows for text to be styled within an expression. This allows for more than one style to be applied to one item (separating parts of the text) and also allows finer control then is available from within the ribbon interface. This function is the textStyle function.&lt;/p&gt;
&lt;p class="p"&gt;The format for this is as follows:&lt;/p&gt;
&lt;p class="p"&gt;textStyle(&amp;#39;My Text&amp;#39;,&amp;#39;Font Weight&amp;#39;,&amp;#39;Font Style&amp;#39;,&amp;#39;Font Colour&amp;#39;) e.g;textStyle(&amp;#39;My Text&amp;#39;,&amp;#39;900&amp;#39;,&amp;#39;Italic&amp;#39;,&amp;#39;FF0000&amp;#39;)&lt;/p&gt;
&lt;p class="p"&gt;The parts of this function work as follows:&lt;/p&gt;
&lt;p class="p"&gt;My Text - This is the text that is to be displayed on the log, this can be either plain text or can be any function that is compatible with&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;span class="ph"&gt;Template Studio&lt;/span&gt;.&lt;/p&gt;
&lt;p class="p"&gt;Font Weight - This is how heavy the text appears, on a scale 1 to 999, where 300 is Normal and 700 is Bold.&lt;/p&gt;
&lt;p class="p"&gt;Font Style - This is the style of the text; Normal/Italic/Oblique.&lt;/p&gt;
&lt;p class="p"&gt;Font Colour - This is the colour of the text in hexidecimal format (This includes transparency). Patterns supported are either RGB or ARGB formats such as FF0000 - red 00FF00 - green, 0000FF - blue and 880000FF is half transparent blue. An explanation of how this works can be found on Wikipedia here and a colour chart, useful for finding codes can be seen below.&lt;/p&gt;
&lt;div class="fig fignone" id="GUID-31CE8C4D-16B6-4928-BFF8-46DC6D031AFB__FIG_03CD90A89D324FD5B36BA2D6AB8AF031"&gt;&lt;img src="/resized-image/__size/320x240/__key/communityserver-wikis-components-files/00-00-00-06-06/pastedimage1653999302334v1.jpeg" alt=" " /&gt;&lt;span class="figdesc"&gt;&lt;/span&gt;&lt;/div&gt;
&lt;p class="p"&gt;Examples can be seen below:&lt;/p&gt;
&lt;p class="p"&gt;textStyle(ConcatenateWith(&amp;#39;-&amp;#39;,[SampleInformation.Type],[SampleIn-formation.SampleReference]),&amp;#39;900&amp;#39;,&amp;#39;Italic&amp;#39;,&amp;#39;FF0000&amp;#39;)Would combine the sample type and reference in bold, italic, red text.&lt;/p&gt;
&lt;div class="fig fignone" id="GUID-31CE8C4D-16B6-4928-BFF8-46DC6D031AFB__FIG_8C3E4E5F9C6B4B10AD7A19A44CFB29AF"&gt;&lt;img src="/resized-image/__size/320x240/__key/communityserver-wikis-components-files/00-00-00-06-06/pastedimage1653999302335v2.jpeg" alt=" " /&gt;&lt;span class="figdesc"&gt;&lt;/span&gt;&lt;/div&gt;
&lt;p class="p"&gt;textStyle(&amp;#39;Client: &amp;#39;,&amp;#39;100&amp;#39;,&amp;#39;Oblique&amp;#39;,&amp;#39;0000FF&amp;#39;)+textStyle([Pro-ject.ClientName],&amp;#39;900&amp;#39;,&amp;#39;Italic&amp;#39;,&amp;#39;FF0000&amp;#39;)&lt;/p&gt;
&lt;p class="p"&gt;Would show the text &amp;#39;Client:&amp;#39; in blue oblique text and then the client name in bold, red, italic text.&lt;/p&gt;
&lt;div class="fig fignone" id="GUID-31CE8C4D-16B6-4928-BFF8-46DC6D031AFB__FIG_D47483CE491E43248DD73549FD663587"&gt;&lt;img src="/resized-image/__size/320x240/__key/communityserver-wikis-components-files/00-00-00-06-06/pastedimage1653999302335v3.jpeg" alt=" " /&gt;&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;
</description></item></channel></rss>