EvotecIT / OfficeIMO

Fast and easy to use cross-platform .NET library that creates or modifies Microsoft Word (DocX) and later also Excel (XLSX) files without installing any software. Library is based on Open XML SDK
MIT License
286 stars 50 forks source link

[WordTextBox] Add additional features #188

Closed TopperDEL closed 8 months ago

TopperDEL commented 8 months ago

This PR adds the following features:

Breaking change:

PrzemyslawKlys commented 8 months ago

I've reworked your code a bit and removed boolean and instead created proper Wrapping functionality that is identical to the one in image. Anchor implements 90% of wrapping but we're missing Inline for both TextBox and Images.

I've moved all the logic around wrapping to separate class, as I guess we will need to somehow expose other parameters of wrapping that are visible in WrapThrough and WrapTight and potentially in WrapTopBottom.

I am not sure how to do this, as I'm too noobish on classes, but maybe I'll figure it out.

This PR needs tests written before it can be commited + Add method in sections.

PrzemyslawKlys commented 8 months ago
TopperDEL commented 8 months ago

Awesome @PrzemyslawKlys! I've been in another project for over a week, but I'll come back to this one soon. Will try what you made and see where I may help. Thanks!

PrzemyslawKlys commented 8 months ago
TopperDEL commented 8 months ago

Do you plan to create a new release with these changes?

PrzemyslawKlys commented 8 months ago

Sure, probably before Monday. I want to play with some other stuff.

PrzemyslawKlys commented 8 months ago

Something went terribly wrong with this PR, as even tho merge went in, it didn't went in with your or my changes?

PrzemyslawKlys commented 8 months ago

Ok i see it went into different branch

PrzemyslawKlys commented 8 months ago

You've built on top of different branch - here's new PR to master

TopperDEL commented 8 months ago

Sorry for the confusion! I forked your repo and create a branch for it, if I remember correctly.

PrzemyslawKlys commented 8 months ago

Not your fault. It was mine. I was just super scared i lost everything 😂

TopperDEL commented 8 months ago

I feel you! 😂