TreeView for WinForms | ComponentOne
C1.Framework.Html Namespace / HyperlinkElement Class / Measure Method / Measure(Graphics,Object,Int32) Method
The System.Drawing.Graphics object to use for measuring.
The content to measure.
The available width.

In This Topic
    Measure(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.
    Syntax
    'Declaration
     
    
    Public Overloads Function Measure( _
       ByVal g As Graphics, _
       ByVal value As Object, _
       ByVal width As Integer _
    ) As Size
    public Size Measure( 
       Graphics g,
       object value,
       int width
    )

    Parameters

    g
    The System.Drawing.Graphics object to use for measuring.
    value
    The content to measure.
    width
    The available width.

    Return Value

    The desired C1.Framework.Element.Size, in pixels, of the content drawn in within the rectangle of the specified width with the current style settings in the specified device context.
    See Also