Ribbon for WinForms | ComponentOne
C1.Win.C1SuperTooltip Namespace / C1SuperLabelBase Class / Measure Method / Measure(Graphics,Int32) Method
System.Drawing.Graphics used to measure.
Width used to calculate word-wrapping.

In This Topic
    Measure(Graphics,Int32) Method
    In This Topic
    Measures the height of the control content using specified System.Drawing.Graphics when rendered with a given width.
    Syntax
    'Declaration
     
    
    Public Overloads Function Measure( _
       ByVal graphics As Graphics, _
       ByVal width As Integer _
    ) As Size
    public Size Measure( 
       Graphics graphics,
       int width
    )

    Parameters

    graphics
    System.Drawing.Graphics used to measure.
    width
    Width used to calculate word-wrapping.

    Return Value

    System.Drawing.Size object that represents the size of the content, in pixels.
    See Also