Bentley Communities
Bentley Communities
  • Site
  • User
  • Site
  • Search
  • User
OpenGround | gINT | Keynetix
  • Product Communities
OpenGround | gINT | Keynetix
gINT | Keynetix Wiki Text Styling
    • Sign In
    • -gINT | Keynetix Wiki
      • +gINT
      • +gINT Collector
      • +gINT Civil Tools
      • -Keynetix
        • +Installing or Upgrading to CONNECT Edition
        • +Archive Webinars
        • +HoleBASE
        • +HoleBASE Civil Extension
        • +HoleBASE Data Entry
        • +HoleBASE Excel Extension
        • -HoleBASE Template Studio
          • +HoleBASE Template Studio:Getting Started
          • -Template Studio: FAQs
            • +Designing Depth Related Areas
            • -Expressions
              • Excel Functions
              • How To Display a Full Location Type Rather than an Abbreviation
              • How To edit the Stratum Detail Descriptions to include the depth information
              • How to show top and base levels in the 'level' column.
              • How To use Text Styling to Make part of the Geology Description Bold
              • Is there a common list of requested Expressions available?
              • Log Only Functions
              • Mathematical Functions
              • My Expression in Template Studio shows the wrong date
              • Run Time Functions
              • Text Styling
              • Why do the numbered remarks in my data not appear on new lines on my templates?
            • +Loading and Saving Templates
          • +HoleBASE Template Studio:How Tos
          • +HoleBASE Template Studio:Issues
          • HoleBASE Template Studio Release Notes
        • +KeyAGS
        • +KeyLAB
        • +Keynetix Component Downloads
        • +Working from Home with Keynetix Products
        • Hardware Specifications and Recommendations
        • Supported Platforms

     
     Questions about this article, topic, or product? Click here. 

    Text Styling

    Template Studio 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.

    The format for this is as follows;

    textStyle('My Text','Font Weight','Font Style','Font Colour')

    e.g;
    textStyle('My Text','900','Italic','FF0000')

    The parts of this function work as follows;
    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 Template Studio.
    Font Weight - This is how heavy the text appears, on a scale 1 to 999, where 300 is Normal and 700 is Bold.
    Font Style - This is the style of the text; Normal/Italic/Oblique.
    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.

    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:

    textStyle('My Text','700','Normal','000000')

    Examples can be seen below;

    textStyle(ConcatenateWith('-',[SampleInformation.Type],[SampleInformation.SampleReference]),'900','Italic','FF0000')
    Would combine the sample type and reference in bold, italic, red text.

    textStyle('Client: ','100','Oblique','0000FF')+textStyle([Project.ClientName],'900','Italic','FF0000')
    Would show the text 'Client:' in blue oblique text and then the client name in bold, red, italic text.

    • Share
    • History
    • More
    • Cancel
    • Stephen Evason Created by Bentley Colleague Stephen Evason
    • When: Fri, Jun 26 2020 8:35 AM
    • Jesse Greenwald Last revision by Bentley Colleague Jesse Greenwald
    • When: Mon, Feb 22 2021 10:21 AM
    • Revisions: 4
    • Comments: 0
    Recommended
    Related
    Communities
    • Home
    • Getting Started
    • Community Central
    • Products
    • Support
    • Secure File Upload
    • Feedback
    Support and Services
    • Home
    • Product Support
    • Downloads
    • Subscription Services Portal
    Training and Learning
    • Home
    • About Bentley Institute
    • My Learning History
    • Reference Books
    Social Media
    •    LinkedIn
    •    Facebook
    •    Twitter
    •    YouTube
    •    RSS Feed
    •    Email

    © 2023 Bentley Systems, Incorporated  |  Contact Us  |  Privacy |  Terms of Use  |  Cookies