Paragraph
AppendChart Method (ChartType, Single, Single)
|
Append an chart object into the document and scales it to the specified size.
Namespace:
Spire.Doc.Documents
Assembly:
Spire.Doc (in Spire.Doc.dll) Version: 13.2.3.0 (13.2.3.3046)
Syntax
public ShapeObject AppendChart(
ChartType chartType,
float width,
float height
)
Public Function AppendChart (
chartType As ChartType,
width As Single,
height As Single
) As ShapeObject
public:
ShapeObject^ AppendChart(
ChartType chartType,
float width,
float height
)
member AppendChart :
chartType : ChartType *
width : float32 *
height : float32 -> ShapeObject
Parameters
-
chartType
-
Type:
Spire.Doc.Fields.Shapes.Charts
ChartType
The chart type to insert into the document.
-
width
-
Type:
System
Single
The width of the image in points. Can be a negative or zero value to request 100% scale.
-
height
-
Type:
System
Single
The height of the image in points. Can be a negative or zero value to request 100% scale.
Return Value
Type:
ShapeObject
The image node that was just inserted.
See Also