Xceed Words for .NET v5.0 Documentation
Xceed.Document.NET Assembly / Xceed.Document.NET Namespace / Document Class / InsertChartAfterParagraph Method
The Chart to insert.
The Paragraph after which to insert the chart.
The width of the chart (in points). By default, 432.
The height of the chart (in points). By default, 252.


In This Topic
    InsertChartAfterParagraph Method
    In This Topic
    Inserts a chart in the document after the specified paragraph.
    Syntax
    'Declaration
     
    Public Sub InsertChartAfterParagraph( _
       ByVal chart As BaseChart, _
       ByVal paragraph As Paragraph, _
       Optional ByVal width As Single, _
       Optional ByVal height As Single _
    ) 
    'Usage
     
    Dim instance As Document
    Dim chart As BaseChart
    Dim paragraph As Paragraph
    Dim width As Single
    Dim height As Single
     
    instance.InsertChartAfterParagraph(chart, paragraph, width, height)
    public void InsertChartAfterParagraph( 
       BaseChart chart,
       Paragraph paragraph,
       float width,
       float height
    )

    Parameters

    chart
    The Chart to insert.
    paragraph
    The Paragraph after which to insert the chart.
    width
    The width of the chart (in points). By default, 432.
    height
    The height of the chart (in points). By default, 252.
    Remarks

    This method expects height and width values expressed in points (pt).

    • To convert to 20th of a point (dxa) : pt*20
    • To convert to Inches (in) : pt*72
    • To convert to Centimeters (cm) : in*2.54
    Requirements

    Target Platforms: Windows 11, Windows 10, Windows 7, Windows, 11, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

    See Also