Skip to main content

ApiShape

ApiShape is a subclass of ApiDrawing.

Methods

MethodReturnsDescription
CopyApiDrawingCreates a copy of the specified drawing object.
DeletebooleanDeletes the specified drawing object from the parent.
FillbooleanSets the fill formatting properties to the current graphic object.
GetClassType"shape"Returns the type of the ApiShape class.
GetContentApiDocumentContentReturns the shape inner contents where a paragraph or text runs can be inserted.
GetDocContentApiDocumentContentDeprecated in 6.2. Returns the shape inner contents where a paragraph or text runs can be inserted.
GetFillApiFill | nullGets the fill properties from the current shape.
GetFlipHboolean | nullGet horizontal flip of current drawing.
GetFlipVboolean | nullGet vertical flip of current drawing.
GetGeometryApiGeometryReturns the geometry object from the current shape.
GetHeightEMUReturns the height of the current drawing.
GetHyperlinkApiHyperlink | nullReturns the hyperlink from the current drawing object (shape or image).
GetInternalIdstringReturns an internal ID of the current drawing object.
GetLineApiStroke | nullGets the outline properties from the current shape.
GetLockValuebooleanReturns the lock value for the specified lock type of the current drawing.
GetNamestringReturns the name of the current drawing.
GetParentApiSlide | ApiLayout | ApiMaster | nullReturns the drawing parent object.
GetParentLayoutApiLayout | nullReturns the drawing parent slide layout.
GetParentMasterApiMaster | nullReturns the drawing parent slide master.
GetParentSlideApiSlide | nullReturns the drawing parent slide.
GetPlaceholderApiPlaceholder | nullReturns a placeholder from the current drawing object.
GetPosXEMUGets the x position of the drawing on the slide.
GetPosYEMUGets the y position of the drawing on the slide.
GetRotationnumberReturns the rotation angle of the current drawing object.
GetWidthEMUReturns the width of the current drawing.
ReplacePlaceholderbooleanReplaces the placeholder by a drawing on the slide.
SelectbooleanSelects the current graphic object.
SetFillbooleanSets the fill properties to the current shape.
SetFlipHbooleanSets the horizontal flip of the current drawing.
SetFlipVbooleanSets the vertical flip of the current drawing.
SetGeometrybooleanSets a custom geometry for the current shape.
SetHyperlinkbooleanSets a hyperlink to the current drawing object (shape or image). Pass null to remove the hyperlink.
SetLinebooleanSets the outline properties to the current shape.
SetLockValuebooleanSets the lock value to the specified lock type of the current drawing.
SetNamebooleanSets the name of the current drawing. If another drawing with the same name already exists, that drawing's name will be reset to a default auto-generated name.
SetOutLinebooleanSets the outline properties to the specified graphic object.
SetPaddingsbooleanSets the text paddings to the current shape.
SetPlaceholderbooleanSets the specified placeholder to the current drawing object.
SetPosXbooleanSets the x position of the drawing on the slide.
SetPosYbooleanSets the y position of the drawing on the slide.
SetPositionNoneSets the position of the drawing on the slide.
SetRotationbooleanSets the rotation angle to the current drawing object.
SetSizeNoneSets the size of the object (image, shape, chart) bounding box.
SetVerticalTextAlignNoneSets the vertical alignment to the shape content where a paragraph or text runs can be inserted.
ToJSONJSONConverts the ApiDrawing object into the JSON object.
UnselectbooleanRemoves the current graphic object from the selection.