ILayoutPlaceholderManager
public interface ILayoutPlaceholderManager
Represents manager that allows you to add placeholders to the layout slide.
Methods
Method | Description |
---|---|
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. |
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. |
addTextPlaceholder(float x, float y, float width, float height) | Adds a new placeholder shape to the layout slide to hold text content. |
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. |
addPicturePlaceholder(float x, float y, float width, float height) | Adds a new placeholder shape to the layout slide to hold a picture. |
addChartPlaceholder(float x, float y, float width, float height) | Adds a new placeholder shape to the layout slide to hold a chart. |
addTablePlaceholder(float x, float y, float width, float height) | Adds a new placeholder shape to the layout slide to hold a table. |
addSmartArtPlaceholder(float x, float y, float width, float height) | Adds a new placeholder shape to the layout slide to hold a SmartArt diagram. |
addMediaPlaceholder(float x, float y, float width, float height) | Adds a new placeholder shape to the layout slide to hold a media object. |
addOnlineImagePlaceholder(float x, float y, float width, float height) | Adds a new placeholder shape to the layout slide to hold an online image. |
addContentPlaceholder(float x, float y, float width, float height)
public abstract 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(); }
Parameters:
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. |
Returns: IAutoShape - Created IAutoShape with a Content placeholder.
addVerticalContentPlaceholder(float x, float y, float width, float height)
public abstract 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(); }
Parameters:
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. |
Returns: IAutoShape - Created IAutoShape with a Content (Vertical) placeholder.
addTextPlaceholder(float x, float y, float width, float height)
public abstract 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(); }
Parameters:
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. |
Returns: IAutoShape - Created IAutoShape with a Text placeholder.
addVerticalTextPlaceholder(float x, float y, float width, float height)
public abstract 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(); }
Parameters:
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. |
Returns: IAutoShape - Created IAutoShape with a Text (Vertical) placeholder.
addPicturePlaceholder(float x, float y, float width, float height)
public abstract 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(); }
Parameters:
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. |
Returns: IAutoShape - Created IAutoShape with a Picture placeholder.
addChartPlaceholder(float x, float y, float width, float height)
public abstract 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(); }
Parameters:
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. |
Returns: IAutoShape - Created IAutoShape with a Chart placeholder.
addTablePlaceholder(float x, float y, float width, float height)
public abstract 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(); }
Parameters:
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. |
Returns: IAutoShape - Created IAutoShape with a Table placeholder.
addSmartArtPlaceholder(float x, float y, float width, float height)
public abstract 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(); }
Parameters:
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. |
Returns: IAutoShape - Created IAutoShape with a SmartArt placeholder.
addMediaPlaceholder(float x, float y, float width, float height)
public abstract 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(); }
Parameters:
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. |
Returns: IAutoShape - Created IAutoShape with a Media placeholder.
addOnlineImagePlaceholder(float x, float y, float width, float height)
public abstract 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(); }
Parameters:
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. |
Returns: IAutoShape - Created IAutoShape with an Online Image placeholder.