This feature enables to insert text at the selection with a predefined formatting in both Word and PowerPoint. As an example, this can be used to insert a tick mark or cross mark with a specified font and color, allowing the user to keep writing with the original formatting.
We define what should be inserted inside the command. An example can be seen below.
CMD
<Cmd case="BaseExtensions:InsertFormattedText">
Parameters
fontName
Define the name of the font. This can be empty.
fontColor
Define the color in RGB. This can be empty.
Example of usage
The example below is from a client, where the feature is used to insert a tick mark.
<Button label="Tick Mark" icon="AcceptTask">
<Cmd case="BaseExtensions:InsertFormattedText" fontName="Monotype Sorts" fontColor="117,151,49">
<![CDATA[✔]]>
</Cmd>
</Button>Was this article helpful?
That’s Great!
Thank you for your feedback
Sorry! We couldn't be helpful
Thank you for your feedback
Feedback sent
We appreciate your effort and will try to fix the article