Skip to main content

ApiShape

ApiShape is a subclass of ApiDrawing.

Methods

MethodReturnsDescription
FillbooleanSets the fill formatting properties to the current graphic object.
GetClassType"shape"Returns a type of the ApiShape class.
GetContentApiDocumentContentReturns the shape inner contents where a paragraph or text runs can be inserted.
GetDocContentApiDocumentContentReturns 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.
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.
GetParentSheetApiWorksheetReturns the parent sheet of the current drawing.
GetRotationnumberReturns the rotation angle of the current drawing object.
GetWidthEMUReturns the width of the current drawing.
SelectNoneSelects 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.
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.
SetPositionNoneChanges the position for the drawing object. 💡 Please note that the horizontal and vertical offsets are calculated within the limits of the specified column and row cells only. If this value exceeds the cell width or height, another vertical/horizontal position will be set.
SetRotationbooleanSets the rotation angle to the current drawing object.
SetSizeNoneSets a size of the object (image, shape, chart) bounding box.
SetVerticalTextAlignbooleanSets the vertical alignment to the shape content where a paragraph or text runs can be inserted.
UnselectbooleanRemoves the current drawing from the selection.