Version

ImageAndTextUIElement.MeasureStringDelegate Delegate

Delegate for measure string callbacks. This can be used when you need to use the autosize calculations but need to iterate through more than one string to find the largest, etc.
Syntax
'Declaration
 
Public Delegate Function ImageAndTextUIElement.MeasureStringDelegate( _
   ByVal g As Graphics, _
   ByVal f As Font, _
   ByVal sf As StringFormat, _
   ByVal text As String _
) As Size
public delegate Size ImageAndTextUIElement.MeasureStringDelegate( 
   Graphics g,
   Font f,
   StringFormat sf,
   string text
)

Parameters

g
f
sf
text
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