AddVerticalContentPlaceholder()
Contents
[
Hide
]ILayoutPlaceholderManager::AddVerticalContentPlaceholder(float, float, float, float) 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.
virtual System::SharedPtr<IAutoShape> Aspose::Slides::ILayoutPlaceholderManager::AddVerticalContentPlaceholder(float x, float y, float width, float height)=0
Arguments
Parameter | Type | Description |
---|---|---|
x | float | The X coordinate of the new placeholder shape. |
y | float | The Y coordinate of the new placeholder shape. |
width | float | The width of the new placeholder shape. |
height | float | The height of the new placeholder shape. |
Return Value
Created IAutoShape with a Content (Vertical) placeholder.
Remarks
The following example shows how to add the Content (Vertical) placeholder shape to the layout slide.
System::SharedPtr<Presentation> pres = System::MakeObject<Presentation>();
System::SharedPtr<ILayoutSlide> layout = pres->get_LayoutSlides()->GetByType(SlideLayoutType::Blank);
System::SharedPtr<IAutoShape> placeholder = layout->get_PlaceholderManager()->AddVerticalContentPlaceholder(20.0f, 20.0f, 300.0f, 500.0f);
See Also
- Typedef SharedPtr
- Class IAutoShape
- Class ILayoutPlaceholderManager
- Namespace Aspose::Slides
- Library Aspose.Slides