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

Control the visibility of a slide in the presentation.

// Create a new slide in the presentation.

// Hide the slide using the SetVisible method.

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