2D Chart for WinForms | ComponentOne
C1.Win.C1Chart.4.8 Assembly / C1.Win.C1ChartBase Namespace / baseChartStyle Class / GetContentWidth Method
A System.Drawing.Graphics object that encapsulates a GDI+ drawing surface.
The content height.
String to measure.
Image to measure.

In This Topic
    GetContentWidth Method
    In This Topic
    Calculates the width of the content based on the specified height and style.
    Syntax
    'Declaration
     
    Public Function GetContentWidth( _
       ByVal g As System.Drawing.Graphics, _
       ByVal height As System.Integer, _
       ByVal str As System.String, _
       ByVal img As System.Drawing.Image _
    ) As System.Integer
    public System.int GetContentWidth( 
       System.Drawing.Graphics g,
       System.int height,
       System.string str,
       System.Drawing.Image img
    )

    Parameters

    g
    A System.Drawing.Graphics object that encapsulates a GDI+ drawing surface.
    height
    The content height.
    str
    String to measure.
    img
    Image to measure.

    Return Value

    Calculated width.
    See Also