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

How to apply html formatted string? #21

Open
raysefo opened this issue Sep 13, 2024 · 2 comments
Open

How to apply html formatted string? #21

raysefo opened this issue Sep 13, 2024 · 2 comments

Comments

@raysefo
Copy link

raysefo commented Sep 13, 2024

Hi,
I installed QuestPDF and HTML Agility Pack. How can I apply Notes? It says can not resolve SetHtml.

string Notes = "<b>Terms and conditions apply.</b>"

container.Row(row =>
{
    row.RelativeItem(350).Background(Colors.Grey.Lighten3).Padding(5).Column(column =>
    {
        column.Spacing(2);
        column.Item().Text("Notlar / Notes:").Bold();
        column.Item().SetHtml(Notes);
    });

 });
@raysefo
Copy link
Author

raysefo commented Sep 13, 2024

Works this way,

column.Item().HTML(handler =>
{
    handler.SetHtml(Notes);
});

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
@raysefo and others