ShapeCollection.CopyInRange

ShapeCollection.CopyInRange method

Copy shapes in the range to destination range.

public void CopyInRange(ShapeCollection sourceShapes, CellArea ca, int destRow, int destColumn, 
    bool isContained)
ParameterTypeDescription
sourceShapesShapeCollectionSource shapes.
caCellAreaThe source range.
destRowInt32The dest row index of the dest range.
destColumnInt32The dest column of the dest range.
isContainedBooleanWhether only copy the shapes which are contained in the range. If true,only copies the shapes in the range. Otherwise,it works as MS Office.

Examples


[C#]
//add a shape
shapes.AddRectangle(2, 0, 2, 0, 130, 130);
CellArea area2 = new CellArea();
area2.StartColumn = 1;
area2.StartRow = 1;
area2.EndColumn = 5;
area2.EndRow = 11;

//copy
shapes.CopyInRange(shapes, area2, 12, 1, false);

See Also