public interface ILayoutPlaceholderManager
Represents manager that allows you to add placeholders to the layout slide.
| Modifier and Type | Method and Description |
|---|---|
IAutoShape |
addChartPlaceholder(float x,
float y,
float width,
float height)
Adds a new placeholder shape to the layout slide to hold a chart.
|
IAutoShape |
addContentPlaceholder(float x,
float y,
float width,
float height)
Adds a new placeholder shape to the layout slide to hold content, such as a picture, table, media or text.
|
IAutoShape |
addMediaPlaceholder(float x,
float y,
float width,
float height)
Adds a new placeholder shape to the layout slide to hold a media object.
|
IAutoShape |
addOnlineImagePlaceholder(float x,
float y,
float width,
float height)
Adds a new placeholder shape to the layout slide to hold an online image.
|
IAutoShape |
addPicturePlaceholder(float x,
float y,
float width,
float height)
Adds a new placeholder shape to the layout slide to hold a picture.
|
IAutoShape |
addSmartArtPlaceholder(float x,
float y,
float width,
float height)
Adds a new placeholder shape to the layout slide to hold a SmartArt diagram.
|
IAutoShape |
addTablePlaceholder(float x,
float y,
float width,
float height)
Adds a new placeholder shape to the layout slide to hold a table.
|
IAutoShape |
addTextPlaceholder(float x,
float y,
float width,
float height)
Adds a new placeholder shape to the layout slide to hold text content.
|
IAutoShape |
addVerticalContentPlaceholder(float x,
float y,
float width,
float height)
Adds a new placeholder shape to the layout slide to hold content, such as a picture, table, media
or text in a vertical direction.
|
IAutoShape |
addVerticalTextPlaceholder(float x,
float y,
float width,
float height)
Adds a new placeholder shape to the layout slide to hold text content in a vertical direction.
|
IAutoShape addContentPlaceholder(float x, float y, float width, float height)
Adds a new placeholder shape to the layout slide to hold content, such as a picture, table, media or text.
The following example shows how to add the Content placeholder shape to the layout slide.Presentation pres = new Presentation(); try { ILayoutSlide layout = pres.getLayoutSlides().getByType(SlideLayoutType.Blank); IAutoShape placeholder = layout.getPlaceholderManager().addContentPlaceholder(20, 20, 500, 300); } finally { if (pres != null) pres.dispose(); }
x - The X coordinate of the new placeholder shape.y - The Y coordinate of the new placeholder shape.width - The width of the new placeholder shape.height - The height of the new placeholder shape.IAutoShape with a Content placeholder.IAutoShape addVerticalContentPlaceholder(float x, float y, float width, float height)
Adds a new placeholder shape to the layout slide to hold content, such as a picture, table, media or text in a vertical direction.
The following example shows how to add the Content (Vertical) placeholder shape to the layout slide.Presentation pres = new Presentation(); try { ILayoutSlide layout = pres.getLayoutSlides().getByType(SlideLayoutType.Blank); IAutoShape placeholder = layout.getPlaceholderManager().addVerticalContentPlaceholder(20, 20, 300, 500); } finally { if (pres != null) pres.dispose(); }
x - The X coordinate of the new placeholder shape.y - The Y coordinate of the new placeholder shape.width - The width of the new placeholder shape.height - The height of the new placeholder shape.IAutoShape with a Content (Vertical) placeholder.IAutoShape addTextPlaceholder(float x, float y, float width, float height)
Adds a new placeholder shape to the layout slide to hold text content.
The following example shows how to add the Text placeholder shape to the layout slide.Presentation pres = new Presentation(); try { ILayoutSlide layout = pres.getLayoutSlides().getByType(SlideLayoutType.Blank); IAutoShape placeholder = layout.getPlaceholderManager().addTextPlaceholder(20, 20, 500, 300); } finally { if (pres != null) pres.dispose(); }
x - The X coordinate of the new placeholder shape.y - The Y coordinate of the new placeholder shape.width - The width of the new placeholder shape.height - The height of the new placeholder shape.IAutoShape with a Text placeholder.IAutoShape addVerticalTextPlaceholder(float x, float y, float width, float height)
Adds a new placeholder shape to the layout slide to hold text content in a vertical direction.
The following example shows how to add the Text (Vertical) placeholder shape to the layout slide.Presentation pres = new Presentation(); try { ILayoutSlide layout = pres.getLayoutSlides().getByType(SlideLayoutType.Blank); IAutoShape placeholder = layout.getPlaceholderManager().addVerticalTextPlaceholder(20, 20, 300, 500); } finally { if (pres != null) pres.dispose(); }
x - The X coordinate of the new placeholder shape.y - The Y coordinate of the new placeholder shape.width - The width of the new placeholder shape.height - The height of the new placeholder shape.IAutoShape with a Text (Vertical) placeholder.IAutoShape addPicturePlaceholder(float x, float y, float width, float height)
Adds a new placeholder shape to the layout slide to hold a picture.
The following example shows how to add the Picture placeholder shape to the layout slide.Presentation pres = new Presentation(); try { ILayoutSlide layout = pres.getLayoutSlides().getByType(SlideLayoutType.Blank); IAutoShape placeholder = layout.getPlaceholderManager().addPicturePlaceholder(20, 20, 200, 200); } finally { if (pres != null) pres.dispose(); }
x - The X coordinate of the new placeholder shape.y - The Y coordinate of the new placeholder shape.width - The width of the new placeholder shape.height - The height of the new placeholder shape.IAutoShape with a Picture placeholder.IAutoShape addChartPlaceholder(float x, float y, float width, float height)
Adds a new placeholder shape to the layout slide to hold a chart.
The following example shows how to add the Chart placeholder shape to the layout slide.Presentation pres = new Presentation(); try { ILayoutSlide layout = pres.getLayoutSlides().getByType(SlideLayoutType.Blank); IAutoShape placeholder = layout.getPlaceholderManager().addChartPlaceholder(20, 20, 200, 200); } finally { if (pres != null) pres.dispose(); }
x - The X coordinate of the new placeholder shape.y - The Y coordinate of the new placeholder shape.width - The width of the new placeholder shape.height - The height of the new placeholder shape.IAutoShape with a Chart placeholder.IAutoShape addTablePlaceholder(float x, float y, float width, float height)
Adds a new placeholder shape to the layout slide to hold a table.
The following example shows how to add the Table placeholder shape to the layout slide.Presentation pres = new Presentation(); try { ILayoutSlide layout = pres.getLayoutSlides().getByType(SlideLayoutType.Blank); IAutoShape placeholder = layout.getPlaceholderManager().addTablePlaceholder(20, 20, 500, 200); } finally { if (pres != null) pres.dispose(); }
x - The X coordinate of the new placeholder shape.y - The Y coordinate of the new placeholder shape.width - The width of the new placeholder shape.height - The height of the new placeholder shape.IAutoShape with a Table placeholder.IAutoShape addSmartArtPlaceholder(float x, float y, float width, float height)
Adds a new placeholder shape to the layout slide to hold a SmartArt diagram.
The following example shows how to add the SmartArt placeholder shape to the layout slide.Presentation pres = new Presentation(); try { ILayoutSlide layout = pres.getLayoutSlides().getByType(SlideLayoutType.Blank); IAutoShape placeholder = layout.getPlaceholderManager().addSmartArtPlaceholder(20, 20, 200, 200); } finally { if (pres != null) pres.dispose(); }
x - The X coordinate of the new placeholder shape.y - The Y coordinate of the new placeholder shape.width - The width of the new placeholder shape.height - The height of the new placeholder shape.IAutoShape with a SmartArt placeholder.IAutoShape addMediaPlaceholder(float x, float y, float width, float height)
Adds a new placeholder shape to the layout slide to hold a media object.
The following example shows how to add the Media placeholder shape to the layout slide.Presentation pres = new Presentation(); try { ILayoutSlide layout = pres.getLayoutSlides().getByType(SlideLayoutType.Blank); IAutoShape placeholder = layout.getPlaceholderManager().addMediaPlaceholder(20, 20, 200, 200); } finally { if (pres != null) pres.dispose(); }
x - The X coordinate of the new placeholder shape.y - The Y coordinate of the new placeholder shape.width - The width of the new placeholder shape.height - The height of the new placeholder shape.IAutoShape with a Media placeholder.IAutoShape addOnlineImagePlaceholder(float x, float y, float width, float height)
Adds a new placeholder shape to the layout slide to hold an online image.
The following example shows how to add the Online Image placeholder shape to the layout slide.Presentation pres = new Presentation(); try { ILayoutSlide layout = pres.getLayoutSlides().getByType(SlideLayoutType.Blank); IAutoShape placeholder = layout.getPlaceholderManager().addOnlineImagePlaceholder(20, 20, 200, 200); } finally { if (pres != null) pres.dispose(); }
x - The X coordinate of the new placeholder shape.y - The Y coordinate of the new placeholder shape.width - The width of the new placeholder shape.height - The height of the new placeholder shape.IAutoShape with an Online Image placeholder.Copyright © 2004-2025 Aspose Pty Ltd. All Rights Reserved.