PdfSharpCore
PdfSharpCore copied to clipboard
1.3.67 vs 1.3.65 - DrawString costructor change
hi, I update package from 1.3.65 to 1.3.67 but this costructor disappeared
public void DrawString(string text, XFont font, XBrush brush, XRect layoutRectangle, XStringFormat format, XUnit? lineHeight = null)
and this is new
public void DrawString(string text, XFont font, XBrush brush, XRect layoutRectangle, TextFormatAlignment alignments, XUnit? lineHeight = null)
how I can translate actual XStringFormat format object into TextFormatAlignment alignments object? thanks
This worked for me
new TextFormatAlignment
{
Horizontal = XParagraphAlignment.Left,
Vertical = XVerticalAlignment.Top
}