Sometimes this gives the following exception: System.InvalidCastException: Unable to cast object of type 'Aspose.Slides.Placeholder' to type 'Aspose.Slides.TextHolder'.
First I'm checking if the shape is a TextHolder (shape.IsTextHolder) but sometimes the object stored in "shape.Placeholder" isn't of type TextHolder anyway. Is this a bug? How can this be explained? If it's not a TextHolder what is it then?
Thanks for clearing my confusion. Best regards Thomas
That is correct behavior but property name is not perfect. Actually it should be Shape.IsPlaceholder. Only placeholders with text (TextHolder) supported by Aspose.Slides. There can be other types which recognized as abstract Placeholder.