ShapeCollection.AddShapeInChartByScale

AddShapeInChartByScale(MsoDrawingType, PlacementType, double, double, double, double)

Add a shape to chart. All unit is percent scale of chart area.

public Shape AddShapeInChartByScale(MsoDrawingType type, PlacementType placement, double left, 
    double top, double right, double bottom)
ParameterTypeDescription
typeMsoDrawingTypeThe drawing type.
placementPlacementTypethe placement type.
leftDoubleUnit is percent scale of chart area width.
topDoubleUnit is percent scale of chart area height.
rightDoubleUnit is percent scale of chart area width.
bottomDoubleUnit is percent scale of chart area height.

See Also


AddShapeInChartByScale(MsoDrawingType, PlacementType, double, double, double, double, byte[])

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

public Shape AddShapeInChartByScale(MsoDrawingType type, PlacementType placement, double left, 
    double top, double right, double bottom, byte[] imageData)
ParameterTypeDescription
typeMsoDrawingTypeThe drawing type.
placementPlacementTypethe placement type.
leftDoubleUnit is percent scale of chart area width.
topDoubleUnit is percent scale of chart area height.
rightDoubleUnit is percent scale of chart area width.
bottomDoubleUnit is percent scale of chart area height.
imageDataByte[]If the shape is not a picture or ole object,imageData should be null.

See Also