incrementTextTool Example demonstrates the use of Text API to copy and modify a Text element.
The tool creates an incremented copy of a numeric/alphanumeric Text element. The user is prompted to select a Text element and is allowed to select Text Elements having numeric/alphanumeric strings only. On valid selection a TextBlock is extracted from the selected Text element and the numeric portion of the TextBlock is incremented by 1. A new Text element is created with the above incremented TextBlock and is placed at the location specified by the user.
This example provides the following key-in.