Extract Text from the Gear Type SmartArt Shape

Possible Usage Scenarios

Aspose.Cells can extract text from the Gear Type SmartArt shape. In order to do so, you should first convert the SmartArt shape to a Group shape using the Shape.get_result_of_smart_art() method. Then you should get the array of all the individual shapes forming the Group shape using the GroupShape.get_grouped_shapes() method. Finally, you can iterate over all the individual shapes one by one in a loop and extract their text using the Shape.text property.

Extract Text from the Gear Type SmartArt Shape

The following sample code loads the sample Excel file that contains a Gear Type SmartArt shape. It then extracts the text from its individual shapes as discussed above. Please see the console output of the code given below for reference.

Sample Code

Console Output

Gear Type Shape Text: Nice

Gear Type Shape Text: Good

Gear Type Shape Text: Excellent