Version

GetStringArrayAverageSizePixels Method

Returns the width of the string that represents the percentile passed in when sorted low to high For example you may want to find the width of the string that is wide enough to hold 80 percent of the text string labels passed in - pass in 80 to this method
Syntax
'Declaration
 
Public Shared Function GetStringArrayAverageSizePixels( _
   ByVal strings() As String, _
   ByVal font As Font, _
   ByVal percentile As Integer _
) As Integer
public static int GetStringArrayAverageSizePixels( 
   string[] strings,
   Font font,
   int percentile
)

Parameters

strings
The array of string that you want to measure
font
The font to measure against
percentile
The percentile from 0-100 to return the width for
Requirements

Target Platforms: Windows 10, Windows 8.1, Windows 8, Windows 7, Windows Server 2012, 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