GetClassType
Returns the type of the ApiSlideShowTransition class.
Syntax
expression.GetClassType();
expression - A variable that represents a ApiSlideShowTransition class.
Parameters
This method doesn't have any parameters.
Returns
"slideShowTransition"
Example
This example gets a class type and pastes it into the presentation.
- Code
- Result
const presentation = Api.GetPresentation();
const slide = presentation.GetSlideByIndex(0);
slide.RemoveAllObjects();
const transition = Api.CreateSlideShowTransition();
transition.SetEntryEffect('effectFade');
transition.SetSpeed('medium');
slide.SetSlideShowTransition(transition);
const retrievedTransition = slide.GetSlideShowTransition();
const classType = retrievedTransition.GetClassType();
const fill = Api.CreateSolidFill(Api.RGB(255, 111, 61));
const stroke = Api.CreateStroke(0, Api.CreateNoFill());
const shape = Api.CreateShape('rect', 300 * 36000, 130 * 36000, fill, stroke);
const content = shape.GetContent();
const paragraph = content.GetElement(0);
paragraph.AddText("Class Type = " + classType);
slide.AddObject(shape);