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

Text box supporting #38

Closed
coolboy0002001 opened this issue Mar 30, 2017 · 5 comments
Closed

Text box supporting #38

coolboy0002001 opened this issue Mar 30, 2017 · 5 comments

Comments

@coolboy0002001
Copy link

Suggest to add function "AddTextBox()" like "AddPicture()"

@xuri xuri added the enhancement New feature or request label Mar 31, 2017
@xuri xuri added the in progress Working in progress label Apr 30, 2017
xuri added a commit that referenced this issue Apr 30, 2017
…ssue #38;

- Drawing `nvPicPr` element ID property calculation changed;
- go test updated
@xuri xuri removed in progress Working in progress enhancement New feature or request labels Apr 30, 2017
@xuri
Copy link
Member

xuri commented Apr 30, 2017

@coolboy0002001 Hi, I have add a new function AddShape() to support create preset geometry in XLSX. You can add text box by create a rect (rectangle) type shape.

@coolboy0002001
Copy link
Author

coolboy0002001 commented May 13, 2017

@xuri It works and I want to know if I could set font-family, font-size and font-color.

xlsx.AddShape("Sheet1", "A2", `{"format":{"x_offset": 15, "y_offset": 10},"type":"rect", "text":"text","width": 60, "height": 35 }`)

@xuri
Copy link
Member

xuri commented May 16, 2017

I have added support for set font style of shape text.

@coolboy0002001
Copy link
Author

coolboy0002001 commented Jun 6, 2017

@xuri Thanks!
How to insert newlines into shape? I tested '\n' not work

xuri added a commit that referenced this issue Jun 19, 2017
…e format set parameter of function `AddShape()` changed;

- go test and go doc updated
@xuri
Copy link
Member

xuri commented Jun 19, 2017

Now AddShape() has been supported to insert a new line, note that the format set parameter has been changed.

@xuri xuri closed this as completed Jul 17, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants