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 aDrawingsWithPh = oMaster.GetDrawingsByPlaceholderType("title");
for (let i = 0; i < aDrawingsWithPh.length; i++) {
aDrawingsWithPh[i].Delete();
}