public class LayoutPlaceholderManager extends java.lang.Object implements 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.
|
public final 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();
}
addContentPlaceholder in interface ILayoutPlaceholderManagerx - 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.public final 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(); }
addVerticalContentPlaceholder in interface ILayoutPlaceholderManagerx - 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.public final 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(); }
addTextPlaceholder in interface ILayoutPlaceholderManagerx - 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.public final 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().addTextPlaceholder(20, 20, 500, 300); } finally { if (pres != null) pres.dispose(); }
addVerticalTextPlaceholder in interface ILayoutPlaceholderManagerx - 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.public final 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(); }
addPicturePlaceholder in interface ILayoutPlaceholderManagerx - 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.public final 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(); }
addChartPlaceholder in interface ILayoutPlaceholderManagerx - 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.public final 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(); }
addTablePlaceholder in interface ILayoutPlaceholderManagerx - 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.public final 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(); }
addSmartArtPlaceholder in interface ILayoutPlaceholderManagerx - 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.public final 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(); }
addMediaPlaceholder in interface ILayoutPlaceholderManagerx - 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.public final 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(); }
addOnlineImagePlaceholder in interface ILayoutPlaceholderManagerx - 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.