Movatterモバイル変換


[0]ホーム

URL:


Skip to main content

This browser is no longer supported.

Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.

Download Microsoft EdgeMore info about Internet Explorer and Microsoft Edge
Table of contentsExit focus mode

What's new in Excel JavaScript API 1.19

  • 2025-05-14
Feedback

In this article

The ExcelApi 1.19 adds capabilities for charts and shapes, to help you better visualize your data in Excel. It also includes updates to the data types feature, such as support forlinked data types,dot notation, and expanded options forbasic cell values.

The following table provides a concise summary of the APIs, while the subsequentAPI list table gives a detailed list.

Feature areaDescriptionRelevant objects
Chart labelsControl the appearance of chart labels.ChartDataLabel,ChartDataLabelAnchor,ChartLeaderLines,ChartLeaderLinesFormat
Linked data typesAdds support for data types connected to Excel from external sources. To learn more, seeCreate linked entity cell valuesLinkedDataType,LinkedDataTypeAddedEventArgs,LinkedDataTypeCollection

API list

The following table lists the APIs in Excel JavaScript API requirement set 1.19. To view API reference documentation for all APIs supported by Excel JavaScript API requirement set 1.19 or earlier, seeExcel APIs in requirement set 1.19 or earlier.

ClassFieldsDescription
BasicCardLayoutlayoutRepresents the type of this layout.
BasicCompactLayouticonSpecifies the name of the icon which is used to open the card.
BasicViewLayoutscardRepresents the layout of this value and its properties in card view.
compactRepresents the layout used when there is limited space to represent the value.
BooleanCellValuelayoutsRepresents layout information for views of this Boolean value.
propertiesRepresents additional properties of this Boolean value.
providerRepresents information that describes the service that provided the data in thisBooleanCellValue.
referencedValuesRepresents the cell values which are referenced withinBooleanCellValue.properties.
CardLayoutTwoColumnSectionlayoutRepresents the type of layout for this section.
ChartDataLabelgeometricShapeTypeSpecifies the geometric shape type of the data label.
getSubstring(start: number, length?: number)Returns a substring of the data label.
getTailAnchor()Returns the tail anchor of the data label which is shown as a sticky callout.
setHeight(height: number)Sets the height of the data label in points.
setWidth(width: number)Sets the width of the data label in points.
showAsStickyCalloutSpecifies if the data label is shown as a callout with the tail anchor attached to the data point.
ChartDataLabelAnchorleftSpecifies the distance, in points, from the anchor to the left edge of the chart data label.
topSpecifies the distance, in points, from the anchor to the top edge of the chart data label.
ChartDataLabelsgeometricShapeTypeSpecifies the geometric shape type of the data labels.
leaderLinesGets an object that represents the leader lines of the data labels.
showAsStickyCalloutSpecifies if the data labels are shown as a callout with the tail anchor attached to the data point.
showLeaderLinesSpecifies if leader lines are displayed for the data labels.
ChartLeaderLinesformatRepresents the formatting of leader lines of data labels in a series.
ChartLeaderLinesFormatlineGets an object that represents the line formatting of chart leader lines.
DoubleCellValuelayoutsRepresents layout information for views of this double value.
numberFormatReturns the number format string that is used to display this value.
propertiesRepresents additional properties of this double value.
providerRepresents information that describes the service that provided the data in thisDoubleCellValue.
referencedValuesRepresents the cell values which are referenced withinDoubleCellValue.properties.
EntityCompactLayouticonSpecifies the name of the icon which is used to open the card.
FormattedNumberCellValuebasicTypeRepresents the value that would be returned byRange.valueTypes for a cell with this value.
basicValueRepresents the value that would be returned byRange.values for a cell with this value.
numberFormatReturns the number format string that is used to display this value.
typeRepresents the type of this cell value.
JavaScriptCustomFunctionReferenceCellValuebasicTypeRepresents the value that would be returned byRange.valueTypes for a cell with this value.
basicValueRepresents the value that would be returned byRange.values for a cell with this value.
functionTypeRepresents the type ofFunctionCellValue.
idRepresents the ID of the custom function.
namespaceRepresents the namespace used by the custom function.
typeRepresents the type of this cell value.
LinkedEntityDataDomaindataProviderGets the name of the data provider for the linked entity data domain.
delete()Deletes this object from theLinkedEntityDataDomainCollection.
idGets the ID of the linked entity data domain defined by Office Add-ins.
lastRefreshedGets the date and time (in the local time zone) since the workbook was opened and theLinkedEntityCellValue objects of this linked entity data domain were last refreshed.
loadFunctionIdGets the ID of the custom function that is called on demand to resolve or refresh theLinkedEntityCellValue objects of the linked entity data domain defined by Office Add-ins.
nameGets the name of the linked entity data domain.
periodicRefreshIntervalGets the frequency, in seconds, at whichLinkedEntityCellValue objects of this linked entity data domain are refreshed automatically.
refresh()Refreshes allLinkedEntityCellValue objects of this linked entity data domain.
refreshModeSpecifies the refresh mode that defines how and when theLinkedEntityCellValue objects of this linked entity data domain are refreshed.
serviceIdGets the service ID of the linked entity data domain.
supportedRefreshModesGets all the refresh modes supported by the linked entity data domain.
LinkedEntityDataDomainAddedEventArgsidGets the ID of the linked entity data domain that was just added to the workbook.
serviceIdGets the service ID of the linked entity data domain that was just added to the workbook.
sourceGets the source of the event.
typeGets the type of the event.
LinkedEntityDataDomainCollectionadd(options: Excel.LinkedEntityDataDomainCreateOptions)Adds a linked entity data domain object defined by the Office Add-in to the collection.
getCount()Gets the number of linked entity data domains in the collection.
getItem(id: string)Gets a linked entity data domain by itsid.
getItemAt(index: number)Gets a linked entity data domain by its index in the collection.
getItemByName(name: string)Gets a linked entity data domain by itsname.
getItemByNameOrNullObject(name: string)Gets a linked entity data domain by itsname.
getItemOrNullObject(id: string)Gets a linked entity data domain by itsid.
itemsGets the loaded child items in this collection.
onLinkedEntityDataDomainAddedOccurs when a new linked entity data domain is added to the workbook.
onRefreshCompletedOccurs when the request to refreshLinkedEntityCellValue objects of a linked entity data domain is completed.
onRefreshModeChangedOccurs when therefreshMode of a linked entity data domain is changed.
refreshAll()Refreshes allLinkedEntityCellValue objects of all linked entity data domains in this collection.
LinkedEntityDataDomainCreateOptionsdataProviderSpecifies the name of the data provider for the linked entity data domain.
idSpecifies the ID of the linked entity data domain.
loadFunctionIdSpecifies the ID of the custom function that will be called on demand to resolve or refresh theLinkedEntityCellValue objects of this linked entity data domain.
nameSpecifies the name of the linked entity data domain.
periodicRefreshIntervalSpecifies the frequency, in seconds, at whichLinkedEntityCellValue objects of this linked entity data domain are refreshed automatically.
supportedRefreshModesSpecifies all the refresh modes supported by the linked entity data domain.
LinkedEntityDataDomainRefreshCompletedEventArgserrorsGets any errors encountered during the request to refreshLinkedEntityCellValue objects of the linked entity data domain.
idGets the ID of the linked entity data domain whoseLinkedEntityCellValue objects were refreshed.
refreshedReturnstrue if theLinkedEntityCellValue objects of the linked entity data domain were refreshed successfully, otherwise returnsfalse.
serviceIdGets the service ID of the linked entity data domain whoseLinkedEntityCellValue objects were refreshed.
sourceGets the source of the event.
typeGets the type of the event.
LinkedEntityDataDomainRefreshModeChangedEventArgsidGets the ID of the linked entity data domain whose refresh mode was changed.
refreshModeGets the new refresh mode of the linked entity data domain.
serviceIdGets the service ID of the linked entity data domain whose refresh mode was changed.
sourceGets the source of the event.
typeGets the type of the event.
LinkedEntityIdCulturecultureRepresents the language culture used to create theLinkedEntityCellValue object.
entityIdRepresents the identifier specific to a service used to create theLinkedEntityCellValue object.
LinkedEntityLoadServiceRequestdomainIdRepresents the domain specific to the service used to create theLinkedEntityCellValue objects.
entitiesRepresents the entity IDs and cultures of theLinkedEntityCellValue objects to load.
LinkedEntityLoadServiceResultentitiesRepresents the loadedLinkedEntityCellValue objects.
RangegetDisplayedCellProperties(cellPropertiesLoadOptions: CellPropertiesLoadOptions)Returns a 2D array, encapsulating the display data for each cell's font, fill, borders, alignment, and other properties.
StringCellValuelayoutsRepresents layout information for views of this string value.
propertiesRepresents additional properties of this string value.
providerRepresents information that describes the service that provided the data in thisStringCellValue.
referencedValuesRepresents the cell values which are referenced withinStringCellValue.properties.
WorkbookgetActiveShape()Gets the active shape in the workbook.
getActiveShapeOrNullObject()Gets the active shape in the workbook.
linkedEntityDataDomainsReturns a collection of linked entity data domains that are available in the workbook.
WorksheetshowDataTypeIconsSpecifies if data type icons are visible on the worksheet.

See also

Collaborate with us on GitHub
The source for this content can be found on GitHub, where you can also create and review issues and pull requests. For more information, seeour contributor guide.

Feedback

Was this page helpful?

YesNo

In this article

Was this page helpful?

YesNo