You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I usually recommend making an educated guess regarding the content size and dividing it into separate columns and rows. Page size is constant, so using concrete size values often allows us to achieve more stable layouts.
varcontent=new[]{("Label 1","Value 234"),("Label 12","Value 34"),("Label 123","Value 4")};
container
.Padding(20).AlignRight().Column(column =>{foreach(var value in content){ column.Item().AlignRight().Row(row =>{ row.AutoItem().Text($"{value.Item1}:").Bold(); row.ConstantItem(75).AlignRight().Text(value.Item2);});}});
Alternatively, you can use some monospaced font and space-pad your text accordingly. For such tasks, it is best to use the non-break space character: #896
Hello,
Thanks for QuestPDF, it's an amazing tool
i have a question about alignment, i would like to align my text like this :
here my code :
container.PaddingVertical(40).Column(column =>
{
column.Spacing(5);
});`
i test with alignMiddle of something like this but i don't have any results :)
sorry if you have already a reply about this :)
Thanks in advance
The text was updated successfully, but these errors were encountered: