ShapeCollection.AddShapeInChart

AddShapeInChart(MsoDrawingType, PlacementType, int, int, int, int, byte[])

Add a shape to chart .All unit is 1/4000 of chart area.

public Shape AddShapeInChart(MsoDrawingType type, PlacementType placement, int left, int top, 
    int right, int bottom, byte[] imageData)
ParameterTypeDescription
typeMsoDrawingTypeThe drawing type.
placementPlacementTypethe placement type.
leftInt32In unit of 1/4000 chart area width.
topInt32In unit of 1/4000 chart area height.
rightInt32In unit of 1/4000 chart area width.
bottomInt32In unit of 1/4000 chart area height.
imageDataByte[]If the shape is not a picture or ole object,imageData should be null.

See Also


AddShapeInChart(MsoDrawingType, PlacementType, int, int, int, int)

Add a shape to chart .All unit is 1/4000 of chart area.

public Shape AddShapeInChart(MsoDrawingType type, PlacementType placement, int left, int top, 
    int right, int bottom)
ParameterTypeDescription
typeMsoDrawingTypeThe drawing type.
placementPlacementTypethe placement type.
leftInt32In unit of 1/4000 chart area width.
topInt32In unit of 1/4000 chart area height.
rightInt32In unit of 1/4000 chart area width.
bottomInt32In unit of 1/4000 chart area height.

See Also