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
#1209 improve text sync #1766
#1209 improve text sync #1766
Conversation
- Add alignment, line spacing, orientation.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi @YuPeiHenry your new unit tests work on powerpoint 2013.
However there are some problems on manual testing.
Horizontal text alignment does not sync:
- Copy and select horizontal text alignment
- Create new textbox and apply format
Result: Nothing happens
On debug
mode, the formatShape.TextFrame2.HorizontalAnchor
returns msoAnchorNone
.
The attached screenshots show every other format being synced but not horizontal alignment.
@ChesterSng turns out there was a bug in horizontal text alignment. I have fixed it, please look through when convenient. |
@YuPeiHenry Tested on PowerPoint 2016, working as expected now |
Could someone test this on 2013 as well? |
No problem on 2013 👍 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Code LGTM. Just need that merge conflict fixed.
…PointLabs into 1209-improve-text-sync # Conflicts: # PowerPointLabs/PowerPointLabs/PowerPointLabs.csproj
@alexfjw I have resolved the merge conflict. |
Fixes #1209
Ready for review (with tests). Tested and working on PPT2016. Does not support strike through as it is suggested as low value.
Outline of Solution
Text alignment: Used
TextFrame
's Horizontal and Vertical Anchor.Text orientation: Used
TextFrame
's orientation.Line spacing: Used
TextFrame.TextRange.ParagraphFormat
's SpaceAfter, SpaceBefore and SpaceWithin.