TextFrame.FitShapeToText Property


#1

Hi Alexey,

thanks for adding AlternativeText.

Is there any way to execute the property FitShapeToText? In powerpoint the property is switched on, but the text doesn t fit into TextFrame.

shape.TextFrame.Paragraphs[0].Portions[0].Text = “a long long text”;
shape.TextFrame.FitShapeToText = true; // has no effect


I use a GDI+ function to calculate the height of my text. But its not 100% exact.

Carsten