PDFKit.NET 2.0 Class Library (.NET 2.0)

Font.CalculateLength Method 

Calculate the length of given text. Multiply the result with the font size to get the length in points.

public double CalculateLength(
   string text
);

Parameters

text
Calculate the length of this text.

Return Value

Length in points. Multiply this with the font size to get the length in points.

See Also

Font Class | TallComponents.PDF.Fonts Namespace