Click or drag to resize

Paragraph AppendChart Method (ChartType, HorizontalOrigin, Single, VerticalOrigin, Single, Single, Single, TextWrappingStyle)

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,
	HorizontalOrigin horzPos,
	float left,
	VerticalOrigin vertPos,
	float top,
	float width,
	float height,
	TextWrappingStyle wrapType
)

Parameters

chartType
Type: Spire.Doc.Fields.Shapes.Charts ChartType
The chart type to insert into the document.
horzPos
Type: Spire.Doc.Documents HorizontalOrigin
Specifies where the distance to the image is measured from.
left
Type: System Single
Distance in points from the origin to the left side of the image.
vertPos
Type: Spire.Doc.Documents VerticalOrigin
Specifies where the distance to the image measured from.
top
Type: System Single
Distance in points from the origin to the top side of the image.
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.
wrapType
Type: Spire.Doc.Documents TextWrappingStyle
Specifies how to wrap text around the image.

Return Value

Type: ShapeObject
The image node that was just inserted.
See Also