Measure(Style,Graphics,Object) Method
Provides the size, in pixels, of the specified content drawn on the specified
System.Drawing.Graphics surface with the specified style.
'Declaration
Public Overloads Function Measure( _
ByVal As Style, _
ByVal As Graphics, _
ByVal As Object _
) As Size
Parameters
- s
- The Style object to use.
- g
- The System.Drawing.Graphics object to use for measuring.
- value
- The content to measure.
Return Value
The desired
Size, in pixels, of the content drawn in a single line with the specified style settings in the specified device context.