pptx API

This reference covers the Office.js-compatible PowerPoint surface exposed by witan pptx exec. TypeScript or JavaScript scripts run headlessly against a PPTX file through PowerPoint.run and the Witan PPTX runtime. Microsoft Office does not need to be installed.

Witan implements an Office.js-compatible PowerPoint superset for headless PPTX automation. It follows Office.js object model semantics where compatible and adds chart APIs that upstream PowerPoint Office.js does not expose. Unsupported members throw explicit Office.js-style errors rather than silently doing nothing.

Call Shape

witan pptx exec deck.pptx --stdin <<'JS'
return await PowerPoint.run(async context => {
  const slide = context.presentation.slides.getItemAt(0);
  const count = context.presentation.slides.getCount();
  await context.sync();
  return { firstSlideId: slide.id, slideCount: count.value };
});
JS

OfficeExtension.ClientResult<T> values, such as getCount(), should be read after await context.sync(). In Witan's headless runtime, load(...) and sync() are compatibility calls rather than network round trips: load(...) records requested properties, and sync() provides the Office.js sequencing point while resolving against the in-memory presentation model.

Runtime Boundaries

  • PowerPoint.createPresentation(...) is intentionally not implemented. Use witan pptx exec <file.pptx> --create --save.
  • Top-level await is supported.
  • Static and dynamic imports are not available.
  • Scripts cannot access the filesystem or network.
  • --input-json is exposed as the global input; --input-file key=@path adds PNG/JPEG data URIs under input[key].
  • The public CLI surface is witan pptx exec, witan pptx exec-types, witan pptx lint, and witan pptx render; the backend RPC operations are implementation details.

Objects returned by the runtime remain live while their underlying presentation object exists. After deleting or structurally replacing an object, reacquire it from its collection before reading or writing it again. Use getItemOrNullObject(...) and related null-object methods when absence is expected; using a stale object raises an Office.js-style error.

Implemented Surface Summary

Runtime

Object Properties Methods
PowerPoint BindingType, BulletStyle, BulletType, ChartAxisCategoryType, ChartAxisGroup, ChartAxisTimeUnit, ChartAxisType, ChartBinType, ChartBoxQuartileCalculation, ChartDataLabelPosition, ChartDataSourceType, ChartDisplayBlanksAs, ChartLegendPosition, ChartLineStyle, ChartMarkerStyle, ChartSeriesBy, ChartSeriesDimension, ChartType, ChartUnderlineStyle, ConnectorType, DocumentPropertyType, ErrorCodes, GeometricShapeType, HyperlinkType, InsertSlideFormatting, LabelingCapability, ParagraphHorizontalAlignment, PlaceholderType, RequestContext, SensitivityLabelProtectionType, SensitivityLabelUpdateResult, ShapeAutoSize, ShapeFillType, ShapeFontUnderlineStyle, ShapeGetImageFormatType, ShapeLineDashStyle, ShapeLineStyle, ShapeType, ShapeZOrder, SlideBackgroundFillType, SlideBackgroundGradientFillType, SlideBackgroundPatternFillType, SlideLayoutType, TableStyle, TextVerticalAlignment, ThemeColor createPresentation, run
RequestContext application, debugInfo, presentation, requestHeaders, sensitivityLabelsCatalog, trackedObjects loadRecursive, sync, trace
Application - newObject

Presentation, slides, layouts, and masters

Object Properties Methods
Presentation bindings, customXmlParts, id, onSlideSelectionChanged, pageSetup, properties, sensitivityLabel, slideMasters, slides, tags, title getActiveSlideOrNullObject, getSelectedShapes, getSelectedSlides, getSelectedTextRange, getSelectedTextRangeOrNullObject, insertSlidesFromBase64, setSelectedSlides
SlideCollection items add, exportAsBase64Presentation, getCount, getItem, getItemAt, getItemOrNullObject
Slide background, customXmlParts, hyperlinks, id, index, layout, shapes, slideMaster, tags, themeColorScheme applyLayout, delete, exportAsBase64, getImageAsBase64, moveTo, setSelectedShapes
SlideScopedCollection items exportAsBase64Presentation, getCount, getItem, getItemAt, getItemOrNullObject
SlideMasterCollection items getCount, getItem, getItemAt, getItemOrNullObject
SlideMaster background, customXmlParts, id, layouts, name, shapes, themeColorScheme delete
SlideLayoutCollection items getCount, getItem, getItemAt, getItemOrNullObject
SlideLayout background, customXmlParts, id, name, shapes, themeColorScheme, type delete

Backgrounds and themes

Object Properties Methods
SlideBackground areBackgroundGraphicsHidden, fill, isMasterBackgroundFollowed reset
SlideBackgroundFill type getGradientFillOrNullObject, getPatternFillOrNullObject, getPictureOrTextureFillOrNullObject, getSolidFillOrNullObject, setGradientFill, setPatternFill, setPictureOrTextureFill, setSolidFill
SlideBackgroundSolidFill color, transparency -
SlideBackgroundGradientFill type -
SlideBackgroundPatternFill backgroundColor, foregroundColor, pattern -
SlideBackgroundPictureOrTextureFill transparency setImage
SlideMasterBackground fill -
SlideLayoutBackground areBackgroundGraphicsHidden, fill, isMasterBackgroundFollowed reset
ThemeColorScheme - getThemeColor, setThemeColor

Shapes, images, and groups

Object Properties Methods
ShapeCollection items addChart, addGeometricShape, addGroup, addLine, addPicture, addTable, addTextBox, getCount, getItem, getItemAt, getItemOrNullObject
ShapeScopedCollection items getCount, getItem, getItemAt, getItemOrNullObject, group
Shape adjustments, altTextDescription, altTextTitle, creationId, customXmlParts, fill, group, height, id, isDecorative, left, level, lineFormat, name, parentGroup, placeholderFormat, rotation, tags, textFrame, top, type, visible, width, zOrderPosition delete, getChart, getChartOrNullObject, getGraphicOrNullObject, getImageAsBase64, getParentSlide, getParentSlideLayout, getParentSlideLayoutOrNullObject, getParentSlideMaster, getParentSlideMasterOrNullObject, getParentSlideOrNullObject, getTable, getTextFrameOrNullObject, setHyperlink, setZOrder
ShapeGroup creationId, id, shape, shapes ungroup
Graphic shape convertToShape
Adjustments count get, set
ShapeFill foregroundColor, transparency, type clear, setImage, setSolidColor
ShapeLineFormat color, dashStyle, style, transparency, visible, weight -
PlaceholderFormat containedType, type -
Object Properties Methods
TextFrame autoSizeSetting, bottomMargin, hasText, leftMargin, rightMargin, textRange, topMargin, verticalAlignment, wordWrap deleteText, getParentShape
TextRange font, hyperlinks, length, paragraphFormat, start, text getParentTextFrame, getSubstring, setHyperlink, setSelected
ShapeFont allCaps, bold, color, doubleStrikethrough, italic, name, size, smallCaps, strikethrough, subscript, superscript, underline -
ParagraphFormat bulletFormat, horizontalAlignment, indentLevel -
BulletFormat style, type, visible -
HyperlinkCollection items add, getCount, getItemAt
HyperlinkScopedCollection items getCount, getItemAt
Hyperlink address, screenTip, type delete, getLinkedShapeOrNullObject, getLinkedTextRangeOrNullObject

Tables

Object Properties Methods
Table columnCount, columns, rowCount, rows, styleSettings, values clear, getCellOrNullObject, getMergedAreas, getShape, mergeCells
TableRowCollection items add, deleteRows, getCount, getItemAt
TableRow currentHeight, height, rowIndex delete
TableColumnCollection items add, deleteColumns, getCount, getItemAt
TableColumn columnIndex, width delete
TableCellCollection items getCount, getItemAtOrNullObject
TableCell borders, columnCount, columnIndex, fill, font, horizontalAlignment, indentLevel, margins, rowCount, rowIndex, text, textRuns, verticalAlignment resize, split
TableStyleSettings areColumnsBanded, areRowsBanded, isFirstColumnHighlighted, isFirstRowHighlighted, isLastColumnHighlighted, isLastRowHighlighted, style -
Borders bottom, diagonalDown, diagonalUp, left, right, top -
Border color, dashStyle, transparency, weight -
Margins bottom, left, right, top -

Metadata and custom data

Object Properties Methods
DocumentProperties author, category, comments, company, creationDate, customProperties, keywords, lastAuthor, manager, revisionNumber, subject, title -
CustomPropertyCollection items add, deleteAll, getCount, getItem, getItemAt, getItemOrNullObject
CustomProperty key, type, value delete
CustomXmlPartCollection items add, getByNamespace, getCount, getItem, getItemAt, getItemOrNullObject
CustomXmlPartScopedCollection items getCount, getItem, getItemAt, getItemOrNullObject, getOnlyItem, getOnlyItemOrNullObject
CustomXmlPart id, namespaceUri delete, getXml, setXml
TagCollection items add, delete, getCount, getItem, getItemAt, getItemOrNullObject
Tag key, value -
BindingCollection items add, addFromSelection, getCount, getItem, getItemAt, getItemOrNullObject
Binding id, type delete, getShape
PageSetup slideHeight, slideWidth -
SensitivityLabel - getCurrentOrNullObject, tryToUpdate
SensitivityLabelsCatalog getLabelingCapability getLabels, newObject
SensitivityLabelDetails children, color, id, isEnabled, isNullObject, name, order, protectionType, siteId, tooltip -
SensitivityLabelDetailsCollection items getCount, getItem, getItemAt, getItemOrNullObject

Charts

Object Properties Methods
Chart axes, chartType, dataLabels, dataSourceKind, displayBlanksAs, format, height, id, left, legend, name, plotArea, plotVisibleOnly, series, showDataLabelsOverMaximum, style, title, top, width delete, setData, setDataRange
ChartAxes categoryAxis, valueAxis getItem
ChartAxis axisGroup, baseTimeUnit, categoryType, linkNumberFormat, majorGridlines, majorTimeUnitScale, majorUnit, maximum, minimum, minorGridlines, minorTimeUnitScale, minorUnit, numberFormat, reversePlotOrder, title, type, visible -
ChartGridlines visible -
ChartAxisTitle text, visible -
ChartTitle overlay, text, visible -
ChartLegend overlay, position, visible -
ChartSeriesCollection count, items getCount, getItemAt
ChartSeries axisGroup, binOptions, boxwhiskerOptions, bubbleScale, chartType, dataLabels, doughnutHoleSize, firstSliceAngle, format, gapWidth, hasDataLabels, invertIfNegative, markerBackgroundColor, markerForegroundColor, markerSize, markerStyle, name, overlap, showConnectorLines, smooth, varyByCategories delete, getDimensionDataSourceString, getDimensionDataSourceType, setBubbleSizes, setValues, setXAxisValues
ChartBinOptions allowOverflow, allowUnderflow, count, overflowValue, type, underflowValue, width -
ChartBoxwhiskerOptions quartileCalculation, showInnerPoints, showMeanLine, showMeanMarker, showOutlierPoints -
ChartDataLabels format, linkNumberFormat, numberFormat, position, separator, showBubbleSize, showCategoryName, showLeaderLines, showLegendKey, showPercentage, showSeriesName, showValue -
ChartDataLabelFormat border, fill, font -
ChartAreaFormat border, fill, font, roundedCorners -
ChartPlotArea format -
ChartPlotAreaFormat border, fill -
ChartSeriesFormat fill, line -
ChartFill - clear, getSolidColor, setSolidColor
ChartLineFormat color, lineStyle, weight clear
ChartBorder color, lineStyle, weight clear
ChartFont bold, color, italic, name, size, underline -

Witan Chart Extensions

These members are Witan extensions for PowerPoint presentations. They use Excel-style chart semantics adapted to PPTX chart parts and embedded chart workbooks.

Chart Enums

ChartType

Specifies the type of a chart.

area = "Area", areaStacked = "AreaStacked", areaStacked100 = "AreaStacked100", barClustered = "BarClustered", barStacked = "BarStacked", barStacked100 = "BarStacked100", bubble = "Bubble", boxwhisker = "Boxwhisker", columnClustered = "ColumnClustered", columnStacked = "ColumnStacked", columnStacked100 = "ColumnStacked100", doughnut = "Doughnut", funnel = "Funnel", histogram = "Histogram", line = "Line", lineMarkers = "LineMarkers", lineMarkersStacked = "LineMarkersStacked", lineMarkersStacked100 = "LineMarkersStacked100", lineStacked = "LineStacked", lineStacked100 = "LineStacked100", pareto = "Pareto", pie = "Pie", radar = "Radar", radarFilled = "RadarFilled", radarMarkers = "RadarMarkers", stockHLC = "StockHLC", stockOHLC = "StockOHLC", stockVHLC = "StockVHLC", stockVOHLC = "StockVOHLC", surfaceTopView = "SurfaceTopView", surfaceTopViewWireframe = "SurfaceTopViewWireframe", waterfall = "Waterfall", xyScatter = "XYScatter", xyScatterLines = "XYScatterLines", xyScatterLinesNoMarkers = "XYScatterLinesNoMarkers", xyScatterSmooth = "XYScatterSmooth", xyScatterSmoothNoMarkers = "XYScatterSmoothNoMarkers"

ChartAxisCategoryType

Specifies the type of a category axis.

automatic = "Automatic", textAxis = "TextAxis", dateAxis = "DateAxis"

ChartAxisGroup

Specifies whether a chart axis or series is primary or secondary.

primary = "Primary", secondary = "Secondary"

ChartAxisTimeUnit

Specifies the time unit used by a date axis.

days = "Days", months = "Months", years = "Years"

ChartBinType

Specifies how bins are configured for histogram and Pareto charts.

category = "Category", auto = "Auto", binWidth = "BinWidth", binCount = "BinCount"

ChartBoxQuartileCalculation

Specifies the quartile calculation type for box and whisker charts.

inclusive = "Inclusive", exclusive = "Exclusive"

ChartAxisType

Specifies the type of chart axis.

category = "Category", invalid = "Invalid", value = "Value"

ChartDataLabelPosition

Specifies the position of chart data labels.

bestFit = "BestFit", bottom = "Bottom", center = "Center", insideBase = "InsideBase", insideEnd = "InsideEnd", left = "Left", outsideEnd = "OutsideEnd", right = "Right", top = "Top"

ChartDataSourceType

Specifies the source type for chart series data.

localRange = "LocalRange"

ChartDisplayBlanksAs

Specifies how blank cells are plotted on a chart.

notPlotted = "NotPlotted", zero = "Zero", interplotted = "Interplotted"

ChartLegendPosition

Specifies the position of a chart legend.

bottom = "Bottom", corner = "Corner", left = "Left", right = "Right", top = "Top"

ChartLineStyle

Specifies the line style for chart borders and line formats.

automatic = "Automatic", continuous = "Continuous", dash = "Dash", dashDot = "DashDot", dashDotDot = "DashDotDot", dot = "Dot", none = "None", roundDot = "RoundDot"

ChartMarkerStyle

Specifies the marker style for a chart series.

automatic = "Automatic", circle = "Circle", dash = "Dash", diamond = "Diamond", dot = "Dot", none = "None", picture = "Picture", plus = "Plus", square = "Square", star = "Star", triangle = "Triangle", x = "X"

ChartUnderlineStyle

Specifies the underline style for chart font text.

none = "None", single = "Single"

ChartSeriesBy

Specifies whether chart data series are read by rows, columns, or inferred automatically.

auto = "Auto", columns = "Columns", rows = "Rows"

ChartSeriesDimension

Specifies a dimension of chart series data.

categories = "Categories", values = "Values", xvalues = "XValues", yvalues = "YValues", bubbleSizes = "BubbleSizes"

Chart Types and Interfaces

ShapeAddChartOptions

Represents the options used when adding a chart to a slide.

Member Type
left? number
top? number
width? number
height? number
name? string
seriesBy? `PowerPoint.ChartSeriesBy
sheetName? string
topLeftCell? string
styleId? number

ChartSetDataOptions

Represents the options used when replacing chart data.

Member Type
chartType? PowerPoint.Chart["chartType"]
seriesBy? `PowerPoint.ChartSeriesBy
sheetName? string
topLeftCell? string
styleId? number

ChartSetDataRangeOptions

Represents the options used when repointing chart data to an embedded workbook range.

Member Type
seriesBy? `PowerPoint.ChartSeriesBy

ChartUpdateData

An interface for updating data on the chart object.

Member Type
axes? PowerPoint.Interfaces.ChartAxesUpdateData
dataLabels? PowerPoint.Interfaces.ChartDataLabelsUpdateData
format? PowerPoint.Interfaces.ChartAreaFormatUpdateData
legend? PowerPoint.Interfaces.ChartLegendUpdateData
plotArea? PowerPoint.Interfaces.ChartPlotAreaUpdateData
title? PowerPoint.Interfaces.ChartTitleUpdateData
chartType? PowerPoint.Chart["chartType"]
displayBlanksAs? `PowerPoint.ChartDisplayBlanksAs
height? number
left? number
name? string
plotVisibleOnly? boolean
showDataLabelsOverMaximum? boolean
style? number
top? number
width? number

ChartAxesUpdateData

An interface for updating data on the chart axes object.

Member Type
categoryAxis? PowerPoint.Interfaces.ChartAxisUpdateData
valueAxis? PowerPoint.Interfaces.ChartAxisUpdateData

ChartAxisUpdateData

An interface for updating data on the chart axis object.

Member Type
majorGridlines? PowerPoint.Interfaces.ChartGridlinesUpdateData
minorGridlines? PowerPoint.Interfaces.ChartGridlinesUpdateData
title? PowerPoint.Interfaces.ChartAxisTitleUpdateData
baseTimeUnit? `PowerPoint.ChartAxisTimeUnit
categoryType? `PowerPoint.ChartAxisCategoryType
linkNumberFormat? boolean
majorTimeUnitScale? `PowerPoint.ChartAxisTimeUnit
majorUnit? `number
maximum? `number
minorTimeUnitScale? `PowerPoint.ChartAxisTimeUnit
minimum? `number
minorUnit? `number
numberFormat? string
reversePlotOrder? boolean
visible? boolean

ChartAxisTitleUpdateData

An interface for updating data on the chart axis title object.

Member Type
text? `string
visible? boolean

ChartGridlinesUpdateData

An interface for updating data on the chart gridlines object.

Member Type
visible? boolean

ChartAreaFormatUpdateData

An interface for updating data on the chart area format object.

Member Type
border? PowerPoint.Interfaces.ChartBorderUpdateData
font? PowerPoint.Interfaces.ChartFontUpdateData
roundedCorners? boolean

ChartBorderUpdateData

An interface for updating data on the chart border object.

Member Type
color? string
lineStyle? `
weight? number

ChartFontUpdateData

An interface for updating data on the chart font object.

Member Type
bold? boolean
color? string
italic? boolean
name? string
size? number
underline? `PowerPoint.ChartUnderlineStyle

ChartDataLabelFormatUpdateData

An interface for updating data on the chart data label format object.

Member Type
border? PowerPoint.Interfaces.ChartBorderUpdateData
font? PowerPoint.Interfaces.ChartFontUpdateData

ChartDataLabelsUpdateData

An interface for updating data on the chart data labels object.

Member Type
format? PowerPoint.Interfaces.ChartDataLabelFormatUpdateData
linkNumberFormat? boolean
numberFormat? string
position? `
separator? string
showBubbleSize? boolean
showCategoryName? boolean
showLeaderLines? boolean
showLegendKey? boolean
showPercentage? boolean
showSeriesName? boolean
showValue? boolean

ChartLegendUpdateData

An interface for updating data on the chart legend object.

Member Type
overlay? boolean
position? `PowerPoint.ChartLegendPosition
visible? boolean

ChartLineFormatUpdateData

An interface for updating data on the chart line format object.

Member Type
color? string
lineStyle? `
weight? number

ChartPlotAreaUpdateData

An interface for updating data on the chart plot area object.

Member Type
format? PowerPoint.Interfaces.ChartPlotAreaFormatUpdateData

ChartPlotAreaFormatUpdateData

An interface for updating data on the chart plot area format object.

Member Type
border? PowerPoint.Interfaces.ChartBorderUpdateData

ChartSeriesCollectionUpdateData

An interface for updating data on a chart series collection.

Member Type
items? PowerPoint.Interfaces.ChartSeriesData[]

ChartSeriesUpdateData

An interface for updating data on the chart series object.

Member Type
dataLabels? PowerPoint.Interfaces.ChartDataLabelsUpdateData
format? PowerPoint.Interfaces.ChartSeriesFormatUpdateData
axisGroup? `PowerPoint.ChartAxisGroup
bubbleScale? number
chartType? PowerPoint.ChartSeries["chartType"]
doughnutHoleSize? number
firstSliceAngle? number
gapWidth? number
hasDataLabels? boolean
invertIfNegative? boolean
markerBackgroundColor? string
markerForegroundColor? string
markerSize? number
markerStyle? PowerPoint.ChartSeries["markerStyle"]
name? string
overlap? number
showConnectorLines? boolean
smooth? boolean
varyByCategories? boolean

ChartSeriesFormatUpdateData

An interface for updating data on the chart series format object.

Member Type
line? PowerPoint.Interfaces.ChartLineFormatUpdateData

ChartTitleUpdateData

An interface for updating data on the chart title object.

Member Type
overlay? boolean
text? `string
visible? boolean

ChartData

An interface describing the data returned by calling chart.toJSON().

Member Type
axes? PowerPoint.Interfaces.ChartAxesData
dataLabels? PowerPoint.Interfaces.ChartDataLabelsData
format? PowerPoint.Interfaces.ChartAreaFormatData
legend? PowerPoint.Interfaces.ChartLegendData
plotArea? PowerPoint.Interfaces.ChartPlotAreaData
series? PowerPoint.Interfaces.ChartSeriesData[]
title? PowerPoint.Interfaces.ChartTitleData
chartType? PowerPoint.Chart["chartType"]
dataSourceKind? string
displayBlanksAs? `PowerPoint.ChartDisplayBlanksAs
height? number
id? string
left? number
name? string
plotVisibleOnly? boolean
showDataLabelsOverMaximum? boolean
style? number
top? number
width? number

ChartAxesData

An interface describing the data returned by calling chartAxes.toJSON().

Member Type
categoryAxis? PowerPoint.Interfaces.ChartAxisData
valueAxis? PowerPoint.Interfaces.ChartAxisData

ChartAxisData

An interface describing the data returned by calling chartAxis.toJSON().

Member Type
axisGroup? `PowerPoint.ChartAxisGroup
baseTimeUnit? `PowerPoint.ChartAxisTimeUnit
categoryType? `PowerPoint.ChartAxisCategoryType
linkNumberFormat? boolean
majorGridlines? PowerPoint.Interfaces.ChartGridlinesData
majorTimeUnitScale? `PowerPoint.ChartAxisTimeUnit
majorUnit? `number
maximum? `number
minorGridlines? PowerPoint.Interfaces.ChartGridlinesData
minorTimeUnitScale? `PowerPoint.ChartAxisTimeUnit
minimum? `number
minorUnit? `number
numberFormat? string
reversePlotOrder? boolean
title? PowerPoint.Interfaces.ChartAxisTitleData
type? `PowerPoint.ChartAxisType
visible? boolean

ChartAxisTitleData

An interface describing the data returned by calling chartAxisTitle.toJSON().

Member Type
text? `string
visible? boolean

ChartBinOptionsData

An interface describing the data returned by calling chartBinOptions.toJSON().

Member Type
allowOverflow? boolean
allowUnderflow? boolean
count? number
overflowValue? number
type? `PowerPoint.ChartBinType
underflowValue? number
width? number

ChartBoxwhiskerOptionsData

An interface describing the data returned by calling chartBoxwhiskerOptions.toJSON().

Member Type
quartileCalculation? `PowerPoint.ChartBoxQuartileCalculation
showInnerPoints? boolean
showMeanLine? boolean
showMeanMarker? boolean
showOutlierPoints? boolean

ChartGridlinesData

An interface describing the data returned by calling chartGridlines.toJSON().

Member Type
visible? boolean

ChartAreaFormatData

An interface describing the data returned by calling chartAreaFormat.toJSON().

Member Type
border? PowerPoint.Interfaces.ChartBorderData
fill? { [key: string]: string }
font? PowerPoint.Interfaces.ChartFontData
roundedCorners? boolean

ChartBorderData

An interface describing the data returned by calling chartBorder.toJSON().

Member Type
color? string
lineStyle? `
weight? `number

ChartFontData

An interface describing the data returned by calling chartFont.toJSON().

Member Type
bold? boolean
color? string
italic? boolean
name? string
size? `number
underline? `PowerPoint.ChartUnderlineStyle

ChartDataLabelFormatData

An interface describing the data returned by calling chartDataLabelFormat.toJSON().

Member Type
border? PowerPoint.Interfaces.ChartBorderData
fill? { [key: string]: string }
font? PowerPoint.Interfaces.ChartFontData

ChartDataLabelsData

An interface describing the data returned by calling chartDataLabels.toJSON().

Member Type
format? PowerPoint.Interfaces.ChartDataLabelFormatData
linkNumberFormat? boolean
numberFormat? string
position? `
separator? string
showBubbleSize? boolean
showCategoryName? boolean
showLeaderLines? boolean
showLegendKey? boolean
showPercentage? boolean
showSeriesName? boolean
showValue? boolean

ChartLegendData

An interface describing the data returned by calling chartLegend.toJSON().

Member Type
overlay? boolean
position? `PowerPoint.ChartLegendPosition
visible? boolean

ChartLineFormatData

An interface describing the data returned by calling chartLineFormat.toJSON().

Member Type
color? string
lineStyle? `
weight? `number

ChartPlotAreaData

An interface describing the data returned by calling chartPlotArea.toJSON().

Member Type
format? PowerPoint.Interfaces.ChartPlotAreaFormatData

ChartPlotAreaFormatData

An interface describing the data returned by calling chartPlotAreaFormat.toJSON().

Member Type
border? PowerPoint.Interfaces.ChartBorderData
fill? { [key: string]: string }

ChartSeriesCollectionData

An interface describing the data returned by calling chartSeriesCollection.toJSON().

Member Type
items? PowerPoint.Interfaces.ChartSeriesData[]

ChartSeriesData

An interface describing the data returned by calling chartSeries.toJSON().

Member Type
binOptions? PowerPoint.Interfaces.ChartBinOptionsData
boxwhiskerOptions? PowerPoint.Interfaces.ChartBoxwhiskerOptionsData
dataLabels? PowerPoint.Interfaces.ChartDataLabelsData
format? PowerPoint.Interfaces.ChartSeriesFormatData
axisGroup? `PowerPoint.ChartAxisGroup
bubbleScale? number
chartType? PowerPoint.ChartSeries["chartType"]
doughnutHoleSize? number
firstSliceAngle? number
gapWidth? number
hasDataLabels? boolean
invertIfNegative? boolean
markerBackgroundColor? `string
markerForegroundColor? `string
markerSize? number
markerStyle? PowerPoint.ChartSeries["markerStyle"]
name? string
overlap? number
showConnectorLines? boolean
smooth? boolean
varyByCategories? boolean

ChartSeriesFormatData

An interface describing the data returned by calling chartSeriesFormat.toJSON().

Member Type
fill? { [key: string]: string }
line? PowerPoint.Interfaces.ChartLineFormatData

ChartTitleData

An interface describing the data returned by calling chartTitle.toJSON().

Member Type
overlay? boolean
text? `string
visible? boolean

ChartLoadOptions

Represents the properties to load on a chart.

Member Type
axes? PowerPoint.Interfaces.ChartAxesLoadOptions
dataLabels? PowerPoint.Interfaces.ChartDataLabelsLoadOptions
format? PowerPoint.Interfaces.ChartAreaFormatLoadOptions
legend? PowerPoint.Interfaces.ChartLegendLoadOptions
plotArea? PowerPoint.Interfaces.ChartPlotAreaLoadOptions
series? PowerPoint.Interfaces.ChartSeriesCollectionLoadOptions
title? PowerPoint.Interfaces.ChartTitleLoadOptions
$all? boolean
chartType? boolean
dataSourceKind? boolean
displayBlanksAs? boolean
height? boolean
id? boolean
left? boolean
name? boolean
plotVisibleOnly? boolean
showDataLabelsOverMaximum? boolean
style? boolean
top? boolean
width? boolean

ChartAxesLoadOptions

Represents the properties to load on chart axes.

Member Type
categoryAxis? PowerPoint.Interfaces.ChartAxisLoadOptions
valueAxis? PowerPoint.Interfaces.ChartAxisLoadOptions
$all? boolean

ChartAxisLoadOptions

Represents the properties to load on a chart axis.

Member Type
majorGridlines? PowerPoint.Interfaces.ChartGridlinesLoadOptions
minorGridlines? PowerPoint.Interfaces.ChartGridlinesLoadOptions
title? PowerPoint.Interfaces.ChartAxisTitleLoadOptions
$all? boolean
axisGroup? boolean
baseTimeUnit? boolean
categoryType? boolean
linkNumberFormat? boolean
majorTimeUnitScale? boolean
majorUnit? boolean
maximum? boolean
minorTimeUnitScale? boolean
minimum? boolean
minorUnit? boolean
numberFormat? boolean
reversePlotOrder? boolean
type? boolean
visible? boolean

ChartAxisTitleLoadOptions

Represents the properties to load on a chart axis title.

Member Type
$all? boolean
text? boolean
visible? boolean

ChartGridlinesLoadOptions

Represents the properties to load on chart gridlines.

Member Type
$all? boolean
visible? boolean

ChartAreaFormatLoadOptions

Represents the properties to load on a chart area format.

Member Type
border? PowerPoint.Interfaces.ChartBorderLoadOptions
font? PowerPoint.Interfaces.ChartFontLoadOptions
$all? boolean
roundedCorners? boolean

ChartBorderLoadOptions

Represents the properties to load on a chart border.

Member Type
$all? boolean
color? boolean
lineStyle? boolean
weight? boolean

ChartFontLoadOptions

Represents the properties to load on a chart font.

Member Type
$all? boolean
bold? boolean
color? boolean
italic? boolean
name? boolean
size? boolean
underline? boolean

ChartDataLabelFormatLoadOptions

Represents the properties to load on a chart data label format.

Member Type
border? PowerPoint.Interfaces.ChartBorderLoadOptions
font? PowerPoint.Interfaces.ChartFontLoadOptions
$all? boolean

ChartDataLabelsLoadOptions

Represents the properties to load on chart data labels.

Member Type
format? PowerPoint.Interfaces.ChartDataLabelFormatLoadOptions
$all? boolean
linkNumberFormat? boolean
numberFormat? boolean
position? boolean
separator? boolean
showBubbleSize? boolean
showCategoryName? boolean
showLeaderLines? boolean
showLegendKey? boolean
showPercentage? boolean
showSeriesName? boolean
showValue? boolean

ChartLegendLoadOptions

Represents the properties to load on a chart legend.

Member Type
$all? boolean
overlay? boolean
position? boolean
visible? boolean

ChartLineFormatLoadOptions

Represents the properties to load on a chart line format.

Member Type
$all? boolean
color? boolean
lineStyle? boolean
weight? boolean

ChartPlotAreaLoadOptions

Represents the properties to load on a chart plot area.

Member Type
format? PowerPoint.Interfaces.ChartPlotAreaFormatLoadOptions
$all? boolean

ChartPlotAreaFormatLoadOptions

Represents the properties to load on a chart plot area format.

Member Type
border? PowerPoint.Interfaces.ChartBorderLoadOptions
$all? boolean

ChartSeriesCollectionLoadOptions

Represents the properties to load for each item in a chart series collection.

Member Type
$all? boolean
binOptions? PowerPoint.Interfaces.ChartBinOptionsLoadOptions
boxwhiskerOptions? PowerPoint.Interfaces.ChartBoxwhiskerOptionsLoadOptions
dataLabels? PowerPoint.Interfaces.ChartDataLabelsLoadOptions
format? PowerPoint.Interfaces.ChartSeriesFormatLoadOptions
axisGroup? boolean
bubbleScale? boolean
chartType? boolean
doughnutHoleSize? boolean
firstSliceAngle? boolean
gapWidth? boolean
hasDataLabels? boolean
invertIfNegative? boolean
markerBackgroundColor? boolean
markerForegroundColor? boolean
markerSize? boolean
markerStyle? boolean
name? boolean
overlap? boolean
showConnectorLines? boolean
smooth? boolean
varyByCategories? boolean

ChartSeriesLoadOptions

Represents the properties to load on a chart series.

Member Type
binOptions? PowerPoint.Interfaces.ChartBinOptionsLoadOptions
boxwhiskerOptions? PowerPoint.Interfaces.ChartBoxwhiskerOptionsLoadOptions
dataLabels? PowerPoint.Interfaces.ChartDataLabelsLoadOptions
format? PowerPoint.Interfaces.ChartSeriesFormatLoadOptions
$all? boolean
axisGroup? boolean
bubbleScale? boolean
chartType? boolean
doughnutHoleSize? boolean
firstSliceAngle? boolean
gapWidth? boolean
hasDataLabels? boolean
invertIfNegative? boolean
markerBackgroundColor? boolean
markerForegroundColor? boolean
markerSize? boolean
markerStyle? boolean
name? boolean
overlap? boolean
showConnectorLines? boolean
smooth? boolean
varyByCategories? boolean

ChartBinOptionsLoadOptions

Represents the properties to load on chart bin options.

Member Type
$all? boolean
allowOverflow? boolean
allowUnderflow? boolean
count? boolean
overflowValue? boolean
type? boolean
underflowValue? boolean
width? boolean

ChartBoxwhiskerOptionsLoadOptions

Represents the properties to load on chart box and whisker options.

Member Type
$all? boolean
quartileCalculation? boolean
showInnerPoints? boolean
showMeanLine? boolean
showMeanMarker? boolean
showOutlierPoints? boolean

ChartSeriesFormatLoadOptions

Represents the properties to load on a chart series format.

Member Type
line? PowerPoint.Interfaces.ChartLineFormatLoadOptions
$all? boolean

ChartTitleLoadOptions

Represents the properties to load on a chart title.

Member Type
$all? boolean
overlay? boolean
text? boolean
visible? boolean

Object Reference

PowerPoint

Properties:

  • BindingType
  • BulletStyle
  • BulletType
  • ChartAxisCategoryType
  • ChartAxisGroup
  • ChartAxisTimeUnit
  • ChartAxisType
  • ChartBinType
  • ChartBoxQuartileCalculation
  • ChartDataLabelPosition
  • ChartDataSourceType
  • ChartDisplayBlanksAs
  • ChartLegendPosition
  • ChartLineStyle
  • ChartMarkerStyle
  • ChartSeriesBy
  • ChartSeriesDimension
  • ChartType
  • ChartUnderlineStyle
  • ConnectorType
  • DocumentPropertyType
  • ErrorCodes
  • GeometricShapeType
  • HyperlinkType
  • InsertSlideFormatting
  • LabelingCapability
  • ParagraphHorizontalAlignment
  • PlaceholderType
  • RequestContext
  • SensitivityLabelProtectionType
  • SensitivityLabelUpdateResult
  • ShapeAutoSize
  • ShapeFillType
  • ShapeFontUnderlineStyle
  • ShapeGetImageFormatType
  • ShapeLineDashStyle
  • ShapeLineStyle
  • ShapeType
  • ShapeZOrder
  • SlideBackgroundFillType
  • SlideBackgroundGradientFillType
  • SlideBackgroundPatternFillType
  • SlideLayoutType
  • TableStyle
  • TextVerticalAlignment
  • ThemeColor

Methods:

  • createPresentation(...)
  • run(...)

RequestContext

Properties:

  • application
  • debugInfo
  • presentation
  • requestHeaders
  • sensitivityLabelsCatalog
  • trackedObjects

Methods:

  • loadRecursive(...)
  • sync(...)
  • trace(...)

Application

Methods:

  • newObject(...)

Presentation

Properties:

  • bindings
  • customXmlParts
  • id
  • onSlideSelectionChanged
  • pageSetup
  • properties
  • sensitivityLabel
  • slideMasters
  • slides
  • tags
  • title

Methods:

  • getActiveSlideOrNullObject(...)
  • getSelectedShapes(...)
  • getSelectedSlides(...)
  • getSelectedTextRange(...)
  • getSelectedTextRangeOrNullObject(...)
  • insertSlidesFromBase64(...)
  • setSelectedSlides(...)

SlideCollection

Properties:

  • items

Methods:

  • add(...)
  • exportAsBase64Presentation(...)
  • getCount(...)
  • getItem(...)
  • getItemAt(...)
  • getItemOrNullObject(...)

Slide

Properties:

  • background
  • customXmlParts
  • hyperlinks
  • id
  • index
  • layout
  • shapes
  • slideMaster
  • tags
  • themeColorScheme

Methods:

  • applyLayout(...)
  • delete(...)
  • exportAsBase64(...)
  • getImageAsBase64(...)
  • moveTo(...)
  • setSelectedShapes(...)

SlideScopedCollection

Properties:

  • items

Methods:

  • exportAsBase64Presentation(...)
  • getCount(...)
  • getItem(...)
  • getItemAt(...)
  • getItemOrNullObject(...)

SlideMasterCollection

Properties:

  • items

Methods:

  • getCount(...)
  • getItem(...)
  • getItemAt(...)
  • getItemOrNullObject(...)

SlideMaster

Properties:

  • background
  • customXmlParts
  • id
  • layouts
  • name
  • shapes
  • themeColorScheme

Methods:

  • delete(...)

SlideLayoutCollection

Properties:

  • items

Methods:

  • getCount(...)
  • getItem(...)
  • getItemAt(...)
  • getItemOrNullObject(...)

SlideLayout

Properties:

  • background
  • customXmlParts
  • id
  • name
  • shapes
  • themeColorScheme
  • type

Methods:

  • delete(...)

SlideBackground

Properties:

  • areBackgroundGraphicsHidden
  • fill
  • isMasterBackgroundFollowed

Methods:

  • reset(...)

SlideBackgroundFill

Properties:

  • type

Methods:

  • getGradientFillOrNullObject(...)
  • getPatternFillOrNullObject(...)
  • getPictureOrTextureFillOrNullObject(...)
  • getSolidFillOrNullObject(...)
  • setGradientFill(...)
  • setPatternFill(...)
  • setPictureOrTextureFill(...)
  • setSolidFill(...)

SlideBackgroundSolidFill

Properties:

  • color
  • transparency

SlideBackgroundGradientFill

Properties:

  • type

SlideBackgroundPatternFill

Properties:

  • backgroundColor
  • foregroundColor
  • pattern

SlideBackgroundPictureOrTextureFill

Properties:

  • transparency

Methods:

  • setImage(...)

SlideMasterBackground

Properties:

  • fill

SlideLayoutBackground

Properties:

  • areBackgroundGraphicsHidden
  • fill
  • isMasterBackgroundFollowed

Methods:

  • reset(...)

ShapeCollection

Properties:

  • items

Methods:

  • addChart(...)
  • addGeometricShape(...)
  • addGroup(...)
  • addLine(...)
  • addPicture(...)
  • addTable(...)
  • addTextBox(...)
  • getCount(...)
  • getItem(...)
  • getItemAt(...)
  • getItemOrNullObject(...)

ShapeScopedCollection

Properties:

  • items

Methods:

  • getCount(...)
  • getItem(...)
  • getItemAt(...)
  • getItemOrNullObject(...)
  • group(...)

Shape

Properties:

  • adjustments
  • altTextDescription
  • altTextTitle
  • creationId
  • customXmlParts
  • fill
  • group
  • height
  • id
  • isDecorative
  • left
  • level
  • lineFormat
  • name
  • parentGroup
  • placeholderFormat
  • rotation
  • tags
  • textFrame
  • top
  • type
  • visible
  • width
  • zOrderPosition

Methods:

  • delete(...)
  • getChart(...)
  • getChartOrNullObject(...)
  • getGraphicOrNullObject(...)
  • getImageAsBase64(...)
  • getParentSlide(...)
  • getParentSlideLayout(...)
  • getParentSlideLayoutOrNullObject(...)
  • getParentSlideMaster(...)
  • getParentSlideMasterOrNullObject(...)
  • getParentSlideOrNullObject(...)
  • getTable(...)
  • getTextFrameOrNullObject(...)
  • setHyperlink(...)
  • setZOrder(...)

ShapeGroup

Properties:

  • creationId
  • id
  • shape
  • shapes

Methods:

  • ungroup(...)

Graphic

Properties:

  • shape

Methods:

  • convertToShape(...)

Adjustments

Properties:

  • count

Methods:

  • get(...)
  • set(...)

ShapeFill

Properties:

  • foregroundColor
  • transparency
  • type

Methods:

  • clear(...)
  • setImage(...)
  • setSolidColor(...)

ShapeLineFormat

Properties:

  • color
  • dashStyle
  • style
  • transparency
  • visible
  • weight

TextFrame

Properties:

  • autoSizeSetting
  • bottomMargin
  • hasText
  • leftMargin
  • rightMargin
  • textRange
  • topMargin
  • verticalAlignment
  • wordWrap

Methods:

  • deleteText(...)
  • getParentShape(...)

TextRange

Properties:

  • font
  • hyperlinks
  • length
  • paragraphFormat
  • start
  • text

Methods:

  • getParentTextFrame(...)
  • getSubstring(...)
  • setHyperlink(...)
  • setSelected(...)

ShapeFont

Properties:

  • allCaps
  • bold
  • color
  • doubleStrikethrough
  • italic
  • name
  • size
  • smallCaps
  • strikethrough
  • subscript
  • superscript
  • underline

ParagraphFormat

Properties:

  • bulletFormat
  • horizontalAlignment
  • indentLevel

BulletFormat

Properties:

  • style
  • type
  • visible

HyperlinkCollection

Properties:

  • items

Methods:

  • add(...)
  • getCount(...)
  • getItemAt(...)

HyperlinkScopedCollection

Properties:

  • items

Methods:

  • getCount(...)
  • getItemAt(...)

Properties:

  • address
  • screenTip
  • type

Methods:

  • delete(...)
  • getLinkedShapeOrNullObject(...)
  • getLinkedTextRangeOrNullObject(...)

Table

Properties:

  • columnCount
  • columns
  • rowCount
  • rows
  • styleSettings
  • values

Methods:

  • clear(...)
  • getCellOrNullObject(...)
  • getMergedAreas(...)
  • getShape(...)
  • mergeCells(...)

TableRowCollection

Properties:

  • items

Methods:

  • add(...)
  • deleteRows(...)
  • getCount(...)
  • getItemAt(...)

TableRow

Properties:

  • currentHeight
  • height
  • rowIndex

Methods:

  • delete(...)

TableColumnCollection

Properties:

  • items

Methods:

  • add(...)
  • deleteColumns(...)
  • getCount(...)
  • getItemAt(...)

TableColumn

Properties:

  • columnIndex
  • width

Methods:

  • delete(...)

TableCellCollection

Properties:

  • items

Methods:

  • getCount(...)
  • getItemAtOrNullObject(...)

TableCell

Properties:

  • borders
  • columnCount
  • columnIndex
  • fill
  • font
  • horizontalAlignment
  • indentLevel
  • margins
  • rowCount
  • rowIndex
  • text
  • textRuns
  • verticalAlignment

Methods:

  • resize(...)
  • split(...)

TableStyleSettings

Properties:

  • areColumnsBanded
  • areRowsBanded
  • isFirstColumnHighlighted
  • isFirstRowHighlighted
  • isLastColumnHighlighted
  • isLastRowHighlighted
  • style

Borders

Properties:

  • bottom
  • diagonalDown
  • diagonalUp
  • left
  • right
  • top

Border

Properties:

  • color
  • dashStyle
  • transparency
  • weight

Margins

Properties:

  • bottom
  • left
  • right
  • top

DocumentProperties

Properties:

  • author
  • category
  • comments
  • company
  • creationDate
  • customProperties
  • keywords
  • lastAuthor
  • manager
  • revisionNumber
  • subject
  • title

CustomPropertyCollection

Properties:

  • items

Methods:

  • add(...)
  • deleteAll(...)
  • getCount(...)
  • getItem(...)
  • getItemAt(...)
  • getItemOrNullObject(...)

CustomProperty

Properties:

  • key
  • type
  • value

Methods:

  • delete(...)

CustomXmlPartCollection

Properties:

  • items

Methods:

  • add(...)
  • getByNamespace(...)
  • getCount(...)
  • getItem(...)
  • getItemAt(...)
  • getItemOrNullObject(...)

CustomXmlPartScopedCollection

Properties:

  • items

Methods:

  • getCount(...)
  • getItem(...)
  • getItemAt(...)
  • getItemOrNullObject(...)
  • getOnlyItem(...)
  • getOnlyItemOrNullObject(...)

CustomXmlPart

Properties:

  • id
  • namespaceUri

Methods:

  • delete(...)
  • getXml(...)
  • setXml(...)

TagCollection

Properties:

  • items

Methods:

  • add(...)
  • delete(...)
  • getCount(...)
  • getItem(...)
  • getItemAt(...)
  • getItemOrNullObject(...)

Tag

Properties:

  • key
  • value

BindingCollection

Properties:

  • items

Methods:

  • add(...)
  • addFromSelection(...)
  • getCount(...)
  • getItem(...)
  • getItemAt(...)
  • getItemOrNullObject(...)

Binding

Properties:

  • id
  • type

Methods:

  • delete(...)
  • getShape(...)

PageSetup

Properties:

  • slideHeight
  • slideWidth

ThemeColorScheme

Methods:

  • getThemeColor(...)
  • setThemeColor(...)

PlaceholderFormat

Properties:

  • containedType
  • type

SensitivityLabel

Methods:

  • getCurrentOrNullObject(...)
  • tryToUpdate(...)

SensitivityLabelsCatalog

Properties:

  • getLabelingCapability

Methods:

  • getLabels(...)
  • newObject(...)

SensitivityLabelDetails

Properties:

  • children
  • color
  • id
  • isEnabled
  • isNullObject
  • name
  • order
  • protectionType
  • siteId
  • tooltip

SensitivityLabelDetailsCollection

Properties:

  • items

Methods:

  • getCount(...)
  • getItem(...)
  • getItemAt(...)
  • getItemOrNullObject(...)

Chart

Properties:

  • axes
  • chartType
  • dataLabels
  • dataSourceKind
  • displayBlanksAs
  • format
  • height
  • id
  • left
  • legend
  • name
  • plotArea
  • plotVisibleOnly
  • series
  • showDataLabelsOverMaximum
  • style
  • title
  • top
  • width

Methods:

  • delete(...)
  • setData(...)
  • setDataRange(...)

ChartAxes

Properties:

  • categoryAxis
  • valueAxis

Methods:

  • getItem(...)

ChartAxis

Properties:

  • axisGroup
  • baseTimeUnit
  • categoryType
  • linkNumberFormat
  • majorGridlines
  • majorTimeUnitScale
  • majorUnit
  • maximum
  • minimum
  • minorGridlines
  • minorTimeUnitScale
  • minorUnit
  • numberFormat
  • reversePlotOrder
  • title
  • type
  • visible

ChartGridlines

Properties:

  • visible

ChartAxisTitle

Properties:

  • text
  • visible

ChartTitle

Properties:

  • overlay
  • text
  • visible

ChartLegend

Properties:

  • overlay
  • position
  • visible

ChartSeriesCollection

Properties:

  • count
  • items

Methods:

  • getCount(...)
  • getItemAt(...)

ChartSeries

Properties:

  • axisGroup
  • binOptions
  • boxwhiskerOptions
  • bubbleScale
  • chartType
  • dataLabels
  • doughnutHoleSize
  • firstSliceAngle
  • format
  • gapWidth
  • hasDataLabels
  • invertIfNegative
  • markerBackgroundColor
  • markerForegroundColor
  • markerSize
  • markerStyle
  • name
  • overlap
  • showConnectorLines
  • smooth
  • varyByCategories

Methods:

  • delete(...)
  • getDimensionDataSourceString(...)
  • getDimensionDataSourceType(...)
  • setBubbleSizes(...)
  • setValues(...)
  • setXAxisValues(...)

ChartBinOptions

Properties:

  • allowOverflow
  • allowUnderflow
  • count
  • overflowValue
  • type
  • underflowValue
  • width

ChartBoxwhiskerOptions

Properties:

  • quartileCalculation
  • showInnerPoints
  • showMeanLine
  • showMeanMarker
  • showOutlierPoints

ChartDataLabels

Properties:

  • format
  • linkNumberFormat
  • numberFormat
  • position
  • separator
  • showBubbleSize
  • showCategoryName
  • showLeaderLines
  • showLegendKey
  • showPercentage
  • showSeriesName
  • showValue

ChartDataLabelFormat

Properties:

  • border
  • fill
  • font

ChartAreaFormat

Properties:

  • border
  • fill
  • font
  • roundedCorners

ChartPlotArea

Properties:

  • format

ChartPlotAreaFormat

Properties:

  • border
  • fill

ChartSeriesFormat

Properties:

  • fill
  • line

ChartFill

Methods:

  • clear(...)
  • getSolidColor(...)
  • setSolidColor(...)

ChartLineFormat

Properties:

  • color
  • lineStyle
  • weight

Methods:

  • clear(...)

ChartBorder

Properties:

  • color
  • lineStyle
  • weight

Methods:

  • clear(...)

ChartFont

Properties:

  • bold
  • color
  • italic
  • name
  • size
  • underline