Namespace: iTextSharp.text.pdf
Assembly: ITextSharp (in ITextSharp.dll) Version: 4.1.6.0

Collapse imageSyntax

C#
public static float FitText(
	Font font,
	string text,
	Rectangle rect,
	float maxFontSize,
	int runDirection
)
Visual Basic
Public Shared Function FitText ( _
	font As Font, _
	text As String, _
	rect As Rectangle, _
	maxFontSize As Single, _
	runDirection As Integer _
) As Single
Visual C++
public:
static float FitText(
	Font^ font, 
	String^ text, 
	Rectangle^ rect, 
	float maxFontSize, 
	int runDirection
)

Parameters

font
Type: iTextSharp.text..::..Font
text
Type: System..::..String
rect
Type: iTextSharp.text..::..Rectangle
maxFontSize
Type: System..::..Single
runDirection
Type: System..::..Int32

Collapse imageSee Also