PdfSharpCore icon indicating copy to clipboard operation
PdfSharpCore copied to clipboard

1.3.67 vs 1.3.65 - DrawString costructor change

Open marcomoret opened this issue 7 months ago • 1 comments

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

marcomoret avatar Apr 23 '25 16:04 marcomoret

This worked for me

new TextFormatAlignment
{
    Horizontal = XParagraphAlignment.Left,
    Vertical = XVerticalAlignment.Top
}

mtbayley avatar May 30 '25 17:05 mtbayley