How to get width of text in shape

Hi,
I am using Aspose Slide to generate the PPT in JAVA .I would like to know is there any way to find out the width of the text which is in a shape.


Hello,

Sorry, there is no possibility to get width of a text. You can only get height of a TextFrame. Actually, we have internal methods to calculate width and height of text for rendering and currently thinking about moving it to public API.

We are trying to create the Table of Index.Do You have any example code for doing it.We are trying to have Title, followed by dots(…),then by the page No.
We are facing issue on adding the dots after the text where the no of dots should be calculated as per the no of Tile text added and the size of each character will vary in the Title and the dots should finish at the same point in all the lines before starting the page nos.

We don’t have such example. But I think it’s better to draw dotted line from right to left instead of inserting dots to a text frame. In this case dots should be aligned much better.