Most of the articles in this section of the Knowledge Base focus on using the Text Format tool, but the Text Format tool does have one drawback, which this article intends to remedy.
While the Text Format tool is beneficial in formatting an entire text object, it cannot format individual values within expressions. When formatting individual values within a text object is necessary, it is recommended to use the string.Format method. The string.Format method provides most of the same formatting options as the Text Format tool, but the string.Format method provides even more flexibility.
To use the string.Format method in a text component, select the text component for editing, and enter the expression in the text field.
Fig. 01 – string.Format Example
As an example, when the need to format a value as currency arises, use the C specifier:
Product Value: {string.Format(“{0:C}”, Value)}
In the case that Value is 100.00, then after formatting, the line prints as:
Product Value: $100.00
Formatting more than one parameter is permissible with the string.Format method.
Product Values: {string.Format(“value1 – {0:C}, value2 – {0:1}”, Value1, Value2)}
For more information about string.Format , see String.Format Method.
Recent Articles
Microvellum Foundation Library Release Notes | Build 25.0523
Additions Added a new Master Curved Front Cabinet product. Added 282 Titus Hinges and 83 Titus Base Plates. NOTE: You will need to manually add this hardware brand into Hardware Wizard “Hinge Brand” combo box list if you are updating library. T-Type ...
Toolbox Release Notes | Build 25.1.0519.641
The following release notes apply to Toolbox build 25.1.0519.641 Work Order Defaults Fix There was an issue reported with setting defaults on work orders. When one processes a work order, then modifies it afterward using the Modify Work Order ...
Adding a Font to Toolbox
This article will explain the process of adding new fonts to Toolbox, both in drawing space and the Report Designer. Toolbox offers an array of fonts for users to customize their text in reports, documents, and drawings. New fonts can be added to the ...
Toolbox Release Notes | Build 25.1.0505.641
The following release notes apply to Toolbox build 25.1.0505.641. Project Workbook Permissions Fix An issue was reported and resolved regarding the permissions of employee access to project factory workbooks. Users who do not have authorization to ...
The Microvellum Client Portal
When logging into Microvellum’s Client Portal, several features are available to help ease the purchasing and management of Microvellum products, the ability to find accurate information in a convenient and timely manner, as well as keep track of ...