What's new in PowerPoint JavaScript API 1.7
PowerPointApi 1.7 added APIs to manage custom and document properties in the presentation.
API list
The following table lists the PowerPoint JavaScript API requirement set 1.7. For a complete list of all PowerPoint JavaScript APIs (including preview APIs and previously released APIs), see all PowerPoint JavaScript APIs.
Class | Fields | Description |
---|---|---|
CustomProperty | delete() | Deletes the custom property. |
key | The string that uniquely identifies the custom property. | |
type | The type of the value used for the custom property. | |
value | The value of the custom property. | |
CustomPropertyCollection | add(key: string, value: boolean | Date | number | string) | Creates a new CustomProperty or updates the property with the given key. |
deleteAll() | Deletes all custom properties in this collection. | |
getCount() | Gets the number of custom properties in the collection. | |
getItem(key: string) | Gets a CustomProperty by its key. |
|
getItemOrNullObject(key: string) | Gets a CustomProperty by its key. |
|
items | Gets the loaded child items in this collection. | |
CustomXmlPart | delete() | Deletes the custom XML part. |
getXml() | Gets the XML content of the custom XML part. | |
id | The ID of the custom XML part. | |
namespaceUri | The namespace URI of the custom XML part. | |
setXml(xml: string) | Sets the XML content for the custom XML part. | |
CustomXmlPartCollection | add(xml: string) | Adds a new CustomXmlPart to the collection. |
getByNamespace(namespaceUri: string) | Gets a new scoped collection of custom XML parts whose namespaces match the given namespace. | |
getCount() | Gets the number of custom XML parts in the collection. | |
getItem(id: string) | Gets a CustomXmlPart based on its ID. |
|
getItemOrNullObject(id: string) | Gets a CustomXmlPart based on its ID. |
|
items | Gets the loaded child items in this collection. | |
CustomXmlPartScopedCollection | getCount() | Gets the number of custom XML parts in this collection. |
getItem(id: string) | Gets a CustomXmlPart based on its ID. |
|
getItemOrNullObject(id: string) | Gets a CustomXmlPart based on its ID. |
|
getOnlyItem() | If the collection contains exactly one item, this method returns it. | |
getOnlyItemOrNullObject() | If the collection contains exactly one item, this method returns it. | |
items | Gets the loaded child items in this collection. | |
DocumentProperties | author | The author of the presentation. |
category | The category of the presentation. | |
comments | The Comments field in the metadata of the presentation. | |
company | The company of the presentation. | |
creationDate | The creation date of the presentation. | |
customProperties | The collection of custom properties of the presentation. | |
keywords | The keywords of the presentation. | |
lastAuthor | The last author of the presentation. | |
manager | The manager of the presentation. | |
revisionNumber | The revision number of the presentation. | |
subject | The subject of the presentation. | |
title | The title of the presentation. | |
Presentation | customXmlParts | Returns a collection of custom XML parts that are associated with the presentation. |
properties | Gets the properties of the presentation. | |
Shape | customXmlParts | Returns a collection of custom XML parts in the shape. |
Slide | customXmlParts | Returns a collection of custom XML parts in the slide. |
SlideLayout | customXmlParts | Returns a collection of custom XML parts in the slide layout. |
SlideMaster | customXmlParts | Returns a collection of custom XML parts in the Slide Master. |