Hi,
Hi Djordje,
I have observed your requirement and suggest you to please try using Alternative Text property with user defined shapes. You can check Alternative Text property for desired shapes and extract the text. This way you will be able to recognize between shapes already added in master or the ones added by you. Please visit this documentation article for your kind reference in this regard.
Many Thanks,
Hi,
Hi Djordje,
I have observed your requirement and like to share that the shapes inside master or normal slides if are added by user can possibly have a property IsTexHolder that may be false. If the shape is added by default master then IsTexHolder will return true. This is one possible implementation that you can test on your end. However, I am not sure if this will apply on all slides crated by customer because if the customer add the shapes in the form of placeholders inside the master slide then IsTexHolder will return true. As suggested earlier, the best approach is to use Alternative Text property. You can try using the suggest approach on your end to serve the purpose. I also like to share that this is neither an issue or a shortcoming in Aspose.Slides. I have shared the approach that may be helpful on your end.
bool ifTextHolder= presentation.getMasters().get_Item(0).getShapes().get_Item(5).isTextHolder();
Many Thanks,