Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Loading Text Length #1944

Open
klippoth opened this issue Jun 3, 2024 · 3 comments
Open

Loading Text Length #1944

klippoth opened this issue Jun 3, 2024 · 3 comments
Assignees
Labels
Area: PowerPoint Feedback on PowerPoint content Needs: attention 👋 Waiting on Microsoft to provide feedback Type: product question Question about the Office Add-ins platform or Office JavaScript APIs

Comments

@klippoth
Copy link

klippoth commented Jun 3, 2024

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.

@microsoft-github-policy-service microsoft-github-policy-service bot added the Needs: triage 🔍 new issue, needs PM on rotation to triage asap label Jun 3, 2024
@AlexJerabek
Copy link
Contributor

Hi @klippoth,

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

@AlexJerabek AlexJerabek self-assigned this Jun 3, 2024
@AlexJerabek AlexJerabek added Needs: author feedback Waiting for author (creator) of Issue to provide more info Type: product question Question about the Office Add-ins platform or Office JavaScript APIs and removed Needs: triage 🔍 new issue, needs PM on rotation to triage asap labels Jun 3, 2024
@klippoth
Copy link
Author

klippoth commented Jun 3, 2024

Hi @AlexJerabek

This is for PowerPoint shapes.

@microsoft-github-policy-service microsoft-github-policy-service bot added Needs: attention 👋 Waiting on Microsoft to provide feedback and removed Needs: author feedback Waiting for author (creator) of Issue to provide more info labels Jun 3, 2024
@AlexJerabek
Copy link
Contributor

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

@AlexJerabek AlexJerabek assigned alison-mk and unassigned AlexJerabek Jun 3, 2024
@AlexJerabek AlexJerabek added the Area: PowerPoint Feedback on PowerPoint content label Jun 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area: PowerPoint Feedback on PowerPoint content Needs: attention 👋 Waiting on Microsoft to provide feedback Type: product question Question about the Office Add-ins platform or Office JavaScript APIs
Projects
None yet
Development

No branches or pull requests

3 participants