GetBasePlaceholder
IShape.GetBasePlaceholder-Methode
Gibt eine grundlegende Platzhalterform (Form aus dem Layout und/oder der Masterfolie, von der die aktuelle Form erbt) zurück. Ein null wird zurückgegeben, wenn die aktuelle Form nicht abgeleitet ist.
public IShape GetBasePlaceholder()
Beispiele
[C#]
// Holen Sie sich alle (Master/Layout/Folie) animierten Effekte der Platzhalterform
using (Presentation pres = new Presentation("sample.pptx"))
{
ISlide slide = pres.Slides[0];
IShape shape = slide.Shapes[0];
IEffect[] shapeEffects = slide.Timeline.MainSequence.GetEffectsByShape(shape);
IShape layoutShape = shape.GetBasePlaceholder();
IEffect[] layoutShapeEffects = slide.LayoutSlide.Timeline.MainSequence.GetEffectsByShape(layoutShape);
IShape masterShape = layoutShape.GetBasePlaceholder();
IEffect[] masterShapeEffects = slide.LayoutSlide.MasterSlide.Timeline.MainSequence.GetEffectsByShape(masterShape);
}
Siehe auch
- interface IShape
- namespace Aspose.Slides
- assembly Aspose.Slides