AddTextPlaceholder
LayoutPlaceholderManager.AddTextPlaceholder-Methode
Fügt eine neue Platzhalterform zur Layout-Folie hinzu, um Textinhalte zu halten.
public IAutoShape AddTextPlaceholder(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 Textplatzhalter.
Beispiele
Das folgende Beispiel zeigt, wie die Textplatzhalterform zur Layout-Folie hinzugefügt wird.
[C#]
using (Presentation pres = new Presentation())
{
ILayoutSlide layout = pres.LayoutSlides.GetByType(SlideLayoutType.Blank);
IAutoShape placeholder = layout.PlaceholderManager.AddTextPlaceholder(20, 20, 500, 300);
}
Siehe auch
- interface IAutoShape
- class LayoutPlaceholderManager
- namespace Aspose.Slides
- assembly Aspose.Slides