跳到主要内容

SetEntryEffect

Sets the entry effect for the slide show transition.

Syntax

expression.SetEntryEffect(entryEffectName);

expression - A variable that represents a ApiSlideShowTransition class.

Parameters

NameRequired/OptionalData typeDefaultDescription
entryEffectNameRequiredEntryEffectThe name of the entry effect in string format.

Returns

boolean

Example

This example sets the entry effect for a slide show transition.

const presentation = Api.GetPresentation();
const slide = presentation.GetSlideByIndex(0);

const transition = Api.CreateSlideShowTransition();
transition.SetEntryEffect('effectCoverLeftDown');
transition.SetSpeed('medium');

slide.SetSlideShowTransition(transition);

const shape = Api.CreateShape(
'rect',
250 * 36000, 50 * 36000,
Api.CreateSolidFill(Api.HexColor('#aba4e8')),
Api.CreateStroke(0, Api.CreateNoFill())
);
const content = shape.GetContent();
const paragraph = content.GetElement(0);
paragraph.AddText('Entry Effect: effectCoverLeftDown');
slide.AddObject(shape);