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

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

Merged
merged 5 commits into from
May 11, 2024

Conversation

PrzemyslawKlys
Copy link
Member

@PrzemyslawKlys PrzemyslawKlys commented May 10, 2024

This PR solves:

There are Breaking Changes:

  • Removed Text property
  • Removed WordParagraph property
  • Added Paragraphs property, allowing for full manipulation
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);

@PrzemyslawKlys PrzemyslawKlys changed the title Improve textboxes to allow multiple Runs/Paragraphs Improve textboxes to allow multiple Runs/Paragraphs **BREAKING CHANGE** May 11, 2024
@PrzemyslawKlys PrzemyslawKlys changed the title Improve textboxes to allow multiple Runs/Paragraphs **BREAKING CHANGE** Improve textboxes to allow multiple Runs/Paragraphs **Breaking Changes** May 11, 2024
@PrzemyslawKlys PrzemyslawKlys merged commit afc62d0 into master May 11, 2024
@PrzemyslawKlys PrzemyslawKlys deleted the ImproveTextbox branch May 11, 2024 19:16
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

Successfully merging this pull request may close these issues.

1 participant