How to get custom connector lines between two shapes

we have two square and we want hash (#) connector inbetween two shapes AS Attachedadimage.JPG (1.5 KB)

@hanuma1n,
Welcome to our community!
To my regret, the connectors do not have the ability to do the customization like that. You can use simple lines instead:

slide.Shapes.AddAutoShape(ShapeType.Line, 10, 10, 200, 100);

More details: Line
API Reference: IShapeCollection.AddAutoShape