GetBasePlaceholder

Shape.GetBasePlaceholder Methode

Gibt eine grundlegende Platzhalterform (Form von dem Layout und/oder der Master-Folie, von der die aktuelle Form abgeleitet ist) zurück. Ein null wird zurückgegeben, wenn die aktuelle Form nicht abgeleitet ist.

public IShape GetBasePlaceholder()

Beispiele

[C#]
// alle (Master/Layout/Folie) animierten Effekte der Platzhalterform abrufen
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