OfficeDev / office-js-docs-reference

Microsoft Office JavaScript API Reference
https://learn.microsoft.com/javascript/api/overview
MIT License
111 stars 65 forks source link

Loading Text Length #1944

Open klippoth opened 4 months ago

klippoth commented 4 months ago

It seems that whilst the documentation suggests that the text length is a TextRange property I was only able to load it from the text class. So that: Loading shape.textFrame.load('textRange/length'); - returns -1 (undefined) Loading shape.textFrame.load('textRange/text/length'); - returns the correct value.

AlexJerabek commented 4 months ago

Hi @klippoth,

Thanks for reporting this. Is your question about Excel or PowerPoint shapes?

klippoth commented 4 months ago

Hi @AlexJerabek

This is for PowerPoint shapes.

AlexJerabek commented 4 months ago

Thanks! @alison-mk, could you please take a look?