Skip to main content

SetVisible

Sets the visibility to the current presentation slide.

Syntax

expression.SetVisible(value);

expression - A variable that represents a ApiSlide class.

Parameters

NameRequired/OptionalData typeDefaultDescription
valueRequiredbooleanSlide visibility.

Returns

boolean

Example

This example sets the visibility to the current presentation slide.

// How to change visibility of the slide.

// Create a slide and make it hidden.

const presentation = Api.GetPresentation();
const slide = Api.CreateSlide();
slide.SetVisible(false);
presentation.AddSlide(slide);