![visio how to change text direction in a shape visio how to change text direction in a shape](http://positiveus.com/img/MAINE-400X300.jpg)
That is, the THEMEVAL function sets the thickness of the lines of our shape to the default line thickness of the current theme, or to 0.24pt if there is no theme selected. In this section, the value for LineWeight is currently THEMEVAL("LineWeight", 0.24pt). To do this, find the section titled Line Format. All that remains now is to show the correct border thickness depending on the user-defined cell’s value. We have now connected our user-defined cell to a custom action in the smart shape’s context menu. Your new action will appear in the context menu: Now right-click on the shape in the drawing area.
![visio how to change text direction in a shape visio how to change text direction in a shape](https://www.mdpi.com/metals/metals-10-00375/article_deploy/html/images/metals-10-00375-g001.png)
When the value is zero (or false), no checkmark will appear. When the value for the user-defined cell thickBorder is non-zero (or true), a checkmark will appear. This defines when a check mark appears next to the option text in the context menu.
#Visio how to change text direction in a shape code#
When the action in the context menu is selected, this code sets the value of the user-defined cell thickBorder to the opposite of what it was.
![visio how to change text direction in a shape visio how to change text direction in a shape](https://venturebeat.com/wp-content/uploads/2020/03/Screenshot_2020-03-25-The-A-Z-of-AI-1.png)
The options in the smart shape’s context menu are called Actions. We will now add an option to the smart shape’s context menu that allows the user to change the value of the user-defined cell thickBorder. Our smart shape now has a new user-defined cell, but it doesn’t affect anything yet. You don’t need to put anything in the Prompt column. Change the name Row_2 to thickBorder, and leave the value at 0 (zero). This will create a new row called User.Row_2. To do so, right-click the user-defined cell User.visVersion and select Insert Row:
![visio how to change text direction in a shape visio how to change text direction in a shape](https://support.content.office.net/en-us/media/d2c7fdd7-6c6a-4a10-bfa6-3acd7c9a19e8.png)
In order to enable the user to select option on our smart shape, the first thing we’ll do is add a user-defined cell.