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



Xfinium.Pdf.Graphics.Text Namespace > PdfTextEngine Class > GetStringInBox Method : GetStringInBox(String,PdfFont,PdfStringLayoutOptions) Method
String to wrap in the box.
Font used to draw the string.
Layout options that affect the string
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 slo As PdfStringLayoutOptions _
) As String
'Usage
 
Dim s As String
Dim font As PdfFont
Dim slo As PdfStringLayoutOptions
Dim value As String
 
value = PdfTextEngine.GetStringInBox(s, font, slo)
public static string GetStringInBox( 
   string s,
   PdfFont font,
   PdfStringLayoutOptions slo
)
public:
static String^ GetStringInBox( 
   String^ s,
   PdfFont^ font,
   PdfStringLayoutOptions^ slo
) 

Parameters

s
String to wrap in the box.
font
Font used to draw the string.
slo
Layout options that affect the string

Return Value

The string that fit in the given box.
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