GetDrawingsByPlaceholderType
function GetDrawingsByPlaceholderType(sType: PlaceholderType = null): Drawing[]
Description
Gets drawings by placeholder type.
Parameters
placeholders type
Returns
Drawing[]
Try It
let oPresentation = Api.GetPresentation();
let oSlide = oPresentation.GetSlideByIndex(0);
let oMaster = oPresentation.GetMaster(0);
let oLayout = oMaster.GetLayout(0);
let aDrawingsWithPh = oLayout.GetDrawingsByPlaceholderType("ctrTitle");
for (let i = 0; i < aDrawingsWithPh.length; i++) {
aDrawingsWithPh[i].Delete();
}