This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/// <summary> | |
/// Enhanced measure string function for PdfSharp Xgraphics | |
/// wich take to account lineBreaks to calculate the real string | |
/// height in a rectagle | |
/// </summary> | |
/// <param name="gfx"></param> | |
/// <param name="text">Text to measure</param> | |
/// <param name="maxWitdh">Maximum allowed width</param> | |
/// <returns></returns> | |
public static XSize MeasureStringExact(this XGraphics gfx, string content, XFont font, double maxWidth) |