XFINIUM.PDF Documentation
GetStringHeight(String,PdfFont,PdfStringLayoutOptions) Method



Xfinium.Pdf.Graphics.Text Namespace > PdfTextEngine Class > GetStringHeight Method : GetStringHeight(String,PdfFont,PdfStringLayoutOptions) Method
String to measure.
Font used to draw the string.
Layout options that affect the string
Gets the height of the string wrapped at the specified width.
Syntax
'Declaration
 
Public Overloads Shared Function GetStringHeight( _
   ByVal s As String, _
   ByVal font As PdfFont, _
   ByVal slo As PdfStringLayoutOptions _
) As Double
'Usage
 
Dim s As String
Dim font As PdfFont
Dim slo As PdfStringLayoutOptions
Dim value As Double
 
value = PdfTextEngine.GetStringHeight(s, font, slo)
public static double GetStringHeight( 
   string s,
   PdfFont font,
   PdfStringLayoutOptions slo
)
public:
static double GetStringHeight( 
   String^ s,
   PdfFont^ font,
   PdfStringLayoutOptions^ slo
) 

Parameters

s
String to measure.
font
Font used to draw the string.
slo
Layout options that affect the string

Return Value

The total height of the text lines.
Requirements

Supported .NET Platforms: .NET 4.0 and higher, Windows Forms, ASP.NET, Windows Presentation Foundation 4.x, Silverlight 5, WinRT, Universal Windows Platform, Xamarin Mac, iOS & Android, Portable Class Library, .NET Core, .NET Standard


Target Platforms:Windows 10, Windows 8.1, Windows 8 , Windows 7, Windows Vista SP1 or later, Windows Server 2008, Windows Server 2008 R2

See Also

Reference

PdfTextEngine Class
PdfTextEngine Members
Overload List