Coercion Type enum
Specifies how to coerce data returned or set by the invoked method.
PowerPoint supports only
Project supports only
A capital Y in the following matrix indicates that this enumeration is supported in the corresponding Office host application. An empty cell indicates that the Office host application doesn't support this enumeration.
For more information about Office host application and server requirements, see Requirements for running Office Add-ins.
Supported hosts, by platform
|Office for Windows desktop||Office Online (in browser)||Office for iPad||OWA for Devices||Office for Mac|
Return or set data as HTML.
Note: Only applies to data in add-ins for Word and Outlook add-ins for Outlook (compose mode).
Data is returned or set as an image stream. Note: Only applies to data in Excel, Word and PowerPoint.
Return or set data as tabular data with no headers. Data is returned or set as an array of arrays containing one-dimensional runs of characters. For example, three rows of string values in two columns would be: [["R1C1", "R1C2"], ["R2C1", "R2C2"], ["R3C1", "R3C2"]].
Note: Only applies to data in Excel and Word.
Return or set data as Office Open XML.
Note: Only applies to data in Word.
Return a JSON object that contains an array of the ids, titles, and indexes of the selected slides. For example,
Note: Only applies to data in PowerPoint when calling the Document.getSelectedData method to get the current slide or selected range of slides.
Return or set data as tabular data with optional headers. Data is returned or set as an array of arrays with optional headers.
Note: Only applies to data in Access, Excel, and Word.
Return or set data as text (string). Data is returned or set as a one-dimensional run of characters.