Get Started
Usage API

GetCurrentSlide

GetCurrentSlide() → { ApiSlide }

Get the current slide.

Parameters:

This method doesn't have any parameters.

Returns:

Type
ApiSlide

Example

Copy code
builder.CreateFile("pptx");
oPresentation = Api.GetPresentation();
oSlide = oPresentation.GetCurrentSlide();
oSlide.RemoveAllObjects();
oGs1 = Api.CreateGradientStop(Api.CreateRGBColor(255, 224, 204), 0);
oGs2 = Api.CreateGradientStop(Api.CreateRGBColor(255, 164, 101), 100000);
oFill = Api.CreateRadialGradientFill([oGs1, oGs2]);
oSlide.SetBackground(oFill);
builder.SaveFile("pptx", "GetCurrentSlide.pptx");
builder.CloseFile();

Resulting document