AddMediaPlaceholder
ILayoutPlaceholderManager.AddMediaPlaceholder Methode
Fügt der Layoutfolie eine neue Platzhalterform hinzu, um ein Medienobjekt zu halten.
public IAutoShape AddMediaPlaceholder(float x, float y, float width, float height)
Parameter | Typ | Beschreibung |
---|---|---|
x | Single | Die X-Koordinate der neuen Platzhalterform. |
y | Single | Die Y-Koordinate der neuen Platzhalterform. |
width | Single | Die Breite der neuen Platzhalterform. |
height | Single | Die Höhe der neuen Platzhalterform. |
Rückgabewert
Erstellt IAutoShape
mit einem Medienplatzhalter.
Beispiele
Das folgende Beispiel zeigt, wie man die Medienplatzhalterform zur Layoutfolie hinzufügt.
[C#]
using (Presentation pres = new Presentation())
{
ILayoutSlide layout = pres.LayoutSlides.GetByType(SlideLayoutType.Blank);
IAutoShape placeholder = layout.PlaceholderManager.AddMediaPlaceholder(20, 20, 200, 200);
}
Siehe auch
- interface IAutoShape
- interface ILayoutPlaceholderManager
- namespace Aspose.Slides
- assembly Aspose.Slides