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

In This Topic
    GetContentSize(Graphics,SizeF,String,Image) Method
    In This Topic
    Calculates the new size of the content based on the specified width and style.
    Syntax
    'Declaration
     
    Public Overloads Function GetContentSize( _
       ByVal g As System.Drawing.Graphics, _
       ByVal sz As System.Drawing.SizeF, _
       ByVal str As System.String, _
       ByVal img As System.Drawing.Image _
    ) As System.Drawing.SizeF
    public System.Drawing.SizeF GetContentSize( 
       System.Drawing.Graphics g,
       System.Drawing.SizeF sz,
       System.string str,
       System.Drawing.Image img
    )

    Parameters

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

    Return Value

    Calculated size.
    See Also