ComponentOne SuperTooltip for WinForms
C1.Win.8 Assembly / C1.Framework Namespace / Element Class / Measure Method / Measure(Graphics,Object) Method
The System.Drawing.Graphics object to use for measuring.
The content to measure.

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

    Parameters

    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 current style settings in the specified device context.
    See Also