Getting placeholder null for pragmatically added shape

Presentation _presentation;
_presentation = new Presentation(new LoadOptions() { LoadFormat = LoadFormat.Pptx });
_presentation.Slides[0].Shapes.AddAutoShape(ShapeType.Rectangle, 50, 130, 400, 400);

Hi,

I have added shape in slide but getting placeholder null for this shape, I want to set placeholder pragmatically or don’t want place to be null for added shape in slide.

Can you please me regarding this.

Best Regard,
Nitin

@nitin.nemade

I have observed your requirements and like to share that placeholder type is for those shapes that you inherit from LayoutSlide of any slide or from MasterSlide of presentation and is derived from PowerPoint template presentation. Any shape that you add for your self does not has any Placeholder type. I hope the shared elaboration will be helpful.