PDF for WinRT
MeasureString(String,Font,Double,StringFormat) Method


String to measure.
Font object that defines the appearance and size of the text.
Maximum width of the string.
A StringFormat object that determines whether word wrapping is allowed.
Measures the specified string when drawn with the specified Font object and formatted with the specified StringFormat object.
Syntax
'Declaration
 
Public Overloads Function MeasureString( _
   ByVal text As String, _
   ByVal font As Font, _
   ByVal width As Double, _
   ByVal fmt As StringFormat _
) As Size
'Usage
 
Dim instance As C1PdfDocument
Dim text As String
Dim font As Font
Dim width As Double
Dim fmt As StringFormat
Dim value As Size
 
value = instance.MeasureString(text, font, width, fmt)
public Size MeasureString( 
   string text,
   Font font,
   double width,
   StringFormat fmt
)

Parameters

text
String to measure.
font
Font object that defines the appearance and size of the text.
width
Maximum width of the string.
fmt
A StringFormat object that determines whether word wrapping is allowed.

Return Value

The size of the string expressed in points.
Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

C1PdfDocument Class
C1PdfDocument Members
Overload List

 

 


Copyright (c) GrapeCity, inc. All rights reserved.

Product Support Forum  |  Documentation Feedback