ApplyLayout
function ApplyLayout(oLayout: ApiLayout = null): boolean
Description
Applies the specified layout to the current slide. The layout must be in slide master.
Parameters
Layout to be applied.
Returns
boolean
Try It
var oPresentation = Api.GetPresentation();
var oSlide = oPresentation.GetSlideByIndex(0);
var oMaster = oPresentation.GetMaster(0);
var oLayout = oMaster.GetLayout(4);
oSlide.ApplyLayout(oLayout);