XFINIUM.PDF Documentation
GetStringInBox(String,PdfFont,Double,Double) Method



String to wrap in the box.
Font used to draw the string.
The box width.
The box height.
Gets the string that fits in the given box.
Syntax
'Declaration
 
Public Overloads Shared Function GetStringInBox( _
   ByVal s As String, _
   ByVal font As PdfFont, _
   ByVal width As Double, _
   ByVal height As Double _
) As String
'Usage
 
Dim s As String
Dim font As PdfFont
Dim width As Double
Dim height As Double
Dim value As String
 
value = PdfTextEngine.GetStringInBox(s, font, width, height)
public static string GetStringInBox( 
   string s,
   PdfFont font,
   double width,
   double height
)
public:
static String^ GetStringInBox( 
   String^ s,
   PdfFont^ font,
   double width,
   double height
) 

Parameters

s
String to wrap in the box.
font
Font used to draw the string.
width
The box width.
height
The box height.

Return Value

The number of characters in the string that fit in the given box.
Requirements

Supported .NET Platforms: .NET 2.0 - .NET 4.6, Windows Forms, ASP.NET, Windows Presentation Foundation 4.x, Silverlight 5, WinRT, Universal Windows Platform, Windows Phone 8 & 8.1, Xamarin iOS & Android, Portable Class Library


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

Send Feedback