'Declaration
Public Overloads Shared Function GetStringInBox( _
ByVal As String, _
ByVal As PdfFont, _
ByVal As Double, _
ByVal 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 ,
PdfFont ,
double ,
double
)
public:
static String^ GetStringInBox(
String^ ,
PdfFont^ ,
double ,
double
)
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.
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