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
261 stars 47 forks source link

Improve textboxes to allow multiple Runs/Paragraphs **Breaking Changes** #225

Closed PrzemyslawKlys closed 1 month ago

PrzemyslawKlys commented 1 month ago

This PR solves:

There are Breaking Changes:

var textBox = document.AddTextBox("[Grab your reader’s attention with a great quote from the document or use this space to emphasize a key point. To place this text box anywhere on the page, just drag it.]");

Console.WriteLine("TextBox Text: " + textBox.Paragraphs[0].Text);

textBox.Paragraphs[0].Text = "We can then modify the text box text";

Console.WriteLine("TextBox Text: " + textBox.Paragraphs[0].Text);

Console.WriteLine("TextBoc Color: " + textBox.Paragraphs[0].Color.ToString());

textBox.Paragraphs[0].Text = "This is a text box 1";

Console.WriteLine("TextBox Text: " + textBox.Paragraphs[0].Text);