Skip to main content

ApiMaster

Represents the ApiMaster class.

Methods

MethodReturnsDescription
AddLayoutbooleanAdds a layout to the specified slide master.
AddObjectbooleanAdds an object (image, shape or chart) to the current slide master.
ClearBackgroundbooleanClears the slide master background.
CopyApiMaster | nullCreates a copy of the specified slide master object.
DeletebooleanDeletes the specified object from the parent if it exists.
DuplicateApiMaster | nullCreates a duplicate of the specified slide master object, adds the new slide master to the slide masters collection.
GetAllChartsApiChart[]Returns an array with all the chart objects from the slide master.
GetAllDrawingsDrawing[]Returns an array with all the drawing objects from the slide master.
GetAllImagesApiImage[]Returns an array with all the image objects from the slide master.
GetAllOleObjectsApiOleObject[]Returns an array with all the OLE objects from the slide master.
GetAllShapesApiShape[]Returns an array with all the shape objects from the slide master.
GetClassType"master"Returns the type of the ApiMaster class.
GetDrawingsByPlaceholderTypeDrawing[]Returns an array of drawings by the specified placeholder type.
GetLayoutApiLayout | nullReturns a layout of the specified slide master by its position.
GetLayoutsCountnumberReturns a number of layout objects.
GetThemeApiTheme | nullReturns a theme of the slide master.
GroupDrawingsApiGroupGroups an array of drawings in the current slide master.
RemoveLayoutbooleanRemoves the layouts from the current slide master.
RemoveObjectbooleanRemoves objects (image, shape or chart) from the current slide master.
SetBackgroundbooleanSets the background to the current slide master.
SetThemebooleanSets a theme to the slide master.\ Sets a copy of the theme object.
ToJSONJSONConverts the ApiMaster object into the JSON object.