Measure(Style,Graphics,Object,Int32) Method
In This Topic
Provides the size, in pixels, of the specified content drawn on the specified System.Drawing.Graphics surface within the rectangle of the specified width with the specified style settings.
Syntax
'Declaration
Public Overloads Function Measure( _
ByVal As Style, _
ByVal As System.Drawing.Graphics, _
ByVal As System.Object, _
ByVal As System.Integer _
) As System.Drawing.Size
public System.Drawing.Size Measure(
Style ,
System.Drawing.Graphics ,
System.object ,
System.int
)
Parameters
- s
- The Element.Style object to use.
- g
- The System.Drawing.Graphics object to use for measuring.
- value
- The content to measure.
- width
- The available width.
Return Value
The desired
Size, in pixels, of the content drawn in within the rectangle of the specified width with the specified style settings in the specified device context.
See Also