跳到主要内容

Api

Represents the Api class.

Methods

MethodReturnsDescription
CentimetersToPointsnumberConverts centimeters to points.
CreateBlipFillApiFillCreates a blip fill to apply to the object using the selected image as the object background.
CreateBulletApiBulletCreates a bullet for a paragraph with the character or symbol specified with the sSymbol parameter.
CreateChartApiChartCreates a chart with the parameters specified.
CreateCustomGeometryApiGeometryCreates a new custom geometry.
CreateGradientStopApiGradientStopCreates a gradient stop used for different types of gradients.
CreateGroupApiGroupCreates a group of drawings.
CreateImageApiImageCreates an image with the parameters specified.
CreateLayoutApiLayoutCreates a new slide layout and adds it to the slide master if it is specified.
CreateLinearGradientFillApiFillCreates a linear gradient fill to apply to the object using the selected linear gradient as the object background.
CreateMasterApiMasterCreates a new slide master.
CreateNoFillApiFillCreates no fill and removes the fill from the element.
CreateNumberingApiBulletCreates a bullet for a paragraph with the numbering character or symbol specified with the numType parameter.
CreateOleObjectApiOleObjectCreates an OLE object with the parameters specified.
CreateParagraphApiParagraphCreates a new paragraph.
CreatePatternFillApiFillCreates a pattern fill to apply to the object using the selected pattern as the object background.
CreatePlaceholderApiPlaceholderCreates a new placeholder.
CreatePresetColorApiPresetColorCreates a color selecting it from one of the available color presets.
CreatePresetGeometryApiGeometry | nullCreates a geometry using one of the available preset shapes.
CreateRGBColorApiRGBColorCreates an RGB color setting the appropriate values for the red, green and blue color components.
CreateRadialGradientFillApiFillCreates a radial gradient fill to apply to the object using the selected radial gradient as the object background.
CreateRunApiRunCreates a new smaller text block to be inserted to the current paragraph or table.
CreateSchemeColorApiSchemeColorCreates a complex color scheme selecting from one of the available schemes.
CreateShapeApiShapeCreates a shape with the parameters specified.
CreateSlideApiSlideCreates a new slide.
CreateSolidFillApiFillCreates a solid fill to apply to the object using a selected solid color as the object background.
CreateStrokeApiStrokeCreates a stroke adding shadows to the element.
CreateTableApiTableCreates a table.
CreateTextPrApiTextPrCreates the empty text properties.
CreateThemeApiTheme | nullCreates a new presentation theme.
CreateThemeColorSchemeApiThemeColorSchemeCreates a new theme color scheme.
CreateThemeFontSchemeApiThemeFontSchemeCreates a new theme font scheme.
CreateThemeFormatSchemeApiThemeFormatSchemeCreates a new theme format scheme.
CreateWordArtApiDrawingCreates a Text Art object with the parameters specified.
EmusToPointsnumberConverts EMUs (English Metric Units) to points.
FromJSONNoneConverts the specified JSON object into the Document Builder object of the corresponding type.
GetFullNamestringReturns the full name of the currently opened file.
GetPresentationApiPresentationReturns the main presentation.
GetSelectionApiSelectionReturns the selection from the current presentation.
InchesToPointsnumberConverts inches to points.
LinesToPointsnumberConverts lines to points (1 line = 12 points).
MillimetersToPixelsnumberConverts millimeters to pixels.
MillimetersToPointsnumberConverts millimeters to points.
PicasToPointsnumberConverts picas to points.
PixelsToEmusnumberConverts pixels to EMUs (English Metric Units).
PixelsToPointsnumberConverts pixels to points.
PointsToCentimetersnumberConverts points to centimeters.
PointsToEmusnumberConverts points to EMUs (English Metric Units).
PointsToInchesnumberConverts points to inches.
PointsToLinesnumberConverts points to lines (1 line = 12 points).
PointsToMillimetersnumberConverts points to millimeters.
PointsToPicasnumberConverts points to picas (1 pica = 12 points).
PointsToPixelsnumberConverts points to pixels.
PointsToTwipsnumberConverts points to twips.
ReplaceTextSmartbooleanReplaces each paragraph (or text in cell) in the select with the corresponding text from an array of strings.
SaveNoneSaves changes to the specified document.
TwipsToPointsnumberConverts twips to points.
attachEventNoneSubscribes to the specified event and calls the callback function when the event fires.
detachEventNoneUnsubscribes from the specified event.