Spread Windows Forms 17
GrapeCity.Spreadsheet Assembly / GrapeCity.Spreadsheet.Drawing Namespace / WorksheetDrawing Class / AddChart Method
The position (in pixels) of the upper-left corner of the chart's bounding box relative to the upper-left corner of the document.
The position (in pixels) of the upper-left corner of the chart's bounding box relative to the upper-left corner of the document.
The width of the chart's bounding box, in pixels.
The height of the chart's bounding box, in pixels.


In This Topic
    AddChart Method (WorksheetDrawing)
    In This Topic
    Adds an empty chart to the worksheet.
    Syntax
    'Declaration
     
    
    Public Function AddChart( _
       ByVal x As Integer, _
       ByVal y As Integer, _
       ByVal width As Integer, _
       ByVal height As Integer _
    ) As ChartObject
    'Usage
     
    
    Dim instance As WorksheetDrawing
    Dim x As Integer
    Dim y As Integer
    Dim width As Integer
    Dim height As Integer
    Dim value As ChartObject
     
    value = instance.AddChart(x, y, width, height)
    public ChartObject AddChart( 
       int x,
       int y,
       int width,
       int height
    )

    Parameters

    x
    The position (in pixels) of the upper-left corner of the chart's bounding box relative to the upper-left corner of the document.
    y
    The position (in pixels) of the upper-left corner of the chart's bounding box relative to the upper-left corner of the document.
    width
    The width of the chart's bounding box, in pixels.
    height
    The height of the chart's bounding box, in pixels.
    See Also