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 Release Notes | Build 26.1.0723.641
The following release notes apply to Microvellum build 26.1.0723.641. Function UI Update The Function Arguments interface has received a major visual overhaul to improve the usability, clarity, and visibility of several elements. Input fields are now ...
Microvellum Release Notes | Build 26.1.0702.641
Dark Mode Fig. 1: The MV Palette in Dark Mode. To enhance the user experience when working within Microvellum, a new Dark Mode setting has been added to the software. Enabling this will apply a dark theme to most interfaces, allowing for a greater ...
Microvellum Foundation Library Release Notes | Build 26.0630
Additions: Added new Fixture product Die Wall Advanced. This product takes the legacy Die Wall products to a new level. More features and advanced parametric abilities: Up to five individual unique subassembly segments, widths controlled via ...
Microvellum Foundation Library Release Notes | Build 26.0527
The following release notes apply to the Microvellum Foundation Library build 26.0527. Additions Added new features for the Wood Drawer Box to have reduced sides, sub front, or back. Added 3 new global and subassembly prompts: “Wood Drawer Side ...
Microvellum Release Notes | Build 26.1.0529.641
The following release notes apply to Microvellum build 26.1.0529.641. BSB Docking Size Fix An issue was reported to be occurring in Microvellum BSB 2026: when adjusting the size of a docked Microvellum palette, users found that the palette would ...