C1.Framework.Html Namespace / HyperlinkElement Class / Measure Method / Measure(Style,Graphics,Object) Method
The C1.Framework.Element.Style object to use.
The System.Drawing.Graphics object to use for measuring.
The content to measure.

In This Topic
Measure(Style,Graphics,Object) Method
In This Topic
Provides the size, in pixels, of the specified content drawn on the specified System.Drawing.Graphics surface with the specified style.
Syntax
'Declaration
 
Public Overloads Function Measure( _
   ByVal s As Style, _
   ByVal g As Graphics, _
   ByVal value As Object _
) As Size
 

Parameters

s
The C1.Framework.Element.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.
See Also