This project has moved and is read-only. For the latest updates, please go here.

Set name for the new shape - how?

Nov 14, 2012 at 3:15 PM


Can anyone help me and explain how can I set the name for the new creating shape?

My code at the moment is below:

private void InsertLine(ShapesToAdd toAdd, Worksheet oSheet)


Microsoft.Office.Interop.Excel.Shape _shape = oSheet.Shapes.AddLine(toAdd.beginX, toAdd.beginY, toAdd.endX, toAdd.endY);