| 
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
Syntax
 
 
public ShapeObject AppendChart(
	ChartType chartType,
	HorizontalOrigin horzPos,
	float left,
	VerticalOrigin vertPos,
	float top,
	float width,
	float height,
	TextWrappingStyle wrapType
)
 
Public Function AppendChart ( 
	chartType As ChartType,
	horzPos As HorizontalOrigin,
	left As Single,
	vertPos As VerticalOrigin,
	top As Single,
	width As Single,
	height As Single,
	wrapType As TextWrappingStyle
) As ShapeObject
 
public:
ShapeObject^ AppendChart(
	ChartType chartType, 
	HorizontalOrigin horzPos, 
	float left, 
	VerticalOrigin vertPos, 
	float top, 
	float width, 
	float height, 
	TextWrappingStyle wrapType
)
 
member AppendChart : 
chartType : ChartType * 
horzPos : HorizontalOrigin * 
left : float32 * 
vertPos : VerticalOrigin * 
top : float32 * 
width : float32 * 
height : float32 * 
wrapType : TextWrappingStyle -> ShapeObject 
 
 
 
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
See Also