AddVerticalContentPlaceholder
LayoutPlaceholderManager.AddVerticalContentPlaceholder method
Adds a new placeholder shape to the layout slide to hold content, such as a picture, table, media or text in a vertical direction.
public IAutoShape AddVerticalContentPlaceholder(float x, float y, float width, float height)
Parameter | Type | Description |
---|---|---|
x | Single | The X coordinate of the new placeholder shape. |
y | Single | The Y coordinate of the new placeholder shape. |
width | Single | The width of the new placeholder shape. |
height | Single | The height of the new placeholder shape. |
Return Value
Created IAutoShape
with a Content (Vertical) placeholder.
Examples
The following example shows how to add the Content (Vertical) placeholder shape to the layout slide.
[C#]
using (Presentation pres = new Presentation())
{
ILayoutSlide layout = pres.LayoutSlides.GetByType(SlideLayoutType.Blank);
IAutoShape placeholder = layout.PlaceholderManager.AddVerticalContentPlaceholder(20, 20, 300, 500);
}
See Also
- interface IAutoShape
- class LayoutPlaceholderManager
- namespace Aspose.Slides
- assembly Aspose.Slides