C1.Xaml.Pdf Namespace > C1PdfDocument Class > MeasureString Method : MeasureString(String,Font,Double,StringFormat) Method |
'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)
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