PDF for WinRT
MeasureString(String,Font) Method


String to measure.
Font object that defines the appearance and size of the text.
Measures the specified string when drawn with a given Font object.
Syntax
'Declaration
 
Public Overloads Function MeasureString( _
   ByVal text As String, _
   ByVal font As Font _
) As Size
'Usage
 
Dim instance As C1PdfDocument
Dim text As String
Dim font As Font
Dim value As Size
 
value = instance.MeasureString(text, font)
public Size MeasureString( 
   string text,
   Font font
)

Parameters

text
String to measure.
font
Font object that defines the appearance and size of the text.

Return Value

The size of the string expressed in points.
Remarks
This overload returns the width and height of the string without wrapping. Unless the text parameter contains line break characters, the height returned corresponds to the font height.
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