AddPicturePlaceholder

LayoutPlaceholderManager.AddPicturePlaceholder method

Adds a new placeholder shape to the layout slide to hold a picture.

public IAutoShape AddPicturePlaceholder(float x, float y, float width, float height)
ParameterTypeDescription
xSingleThe X coordinate of the new placeholder shape.
ySingleThe Y coordinate of the new placeholder shape.
widthSingleThe width of the new placeholder shape.
heightSingleThe height of the new placeholder shape.

Return Value

Created IAutoShape with a Picture placeholder.

Examples

The following example shows how to add the Picture placeholder shape to the layout slide.

[C#]
using (Presentation pres = new Presentation())
{
	ILayoutSlide layout = pres.LayoutSlides.GetByType(SlideLayoutType.Blank);
	IAutoShape placeholder = layout.PlaceholderManager.AddPicturePlaceholder(20, 20, 200, 200);
}

See Also