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.
GetClassType"shape"Returns the type of the ApiShape class.
GetContentApiDocumentContentReturns the shape inner contents where a paragraph or text runs can be inserted.
GetFillApiFill | nullGets the fill properties from the current shape.
GetGeometryApiGeometryReturns the geometry object from the current shape.
GetHeightEMUReturns the height of the current drawing.
GetLineApiStroke | nullGets the outline properties from the current shape.
GetParentPageApiPageReturns the type of the ApiDrawing class.
GetPosXEMUGets the x position of the drawing on the page.
GetPosYEMUGets the y position of the drawing on the page.
GetRotationnumberReturns the rotation angle of the current drawing object.
GetWidthEMUReturns the width of the current drawing.
SelectbooleanSelects the current graphic object.
SetFillbooleanSets the fill properties to the current shape.
SetGeometrybooleanSets a custom geometry for the current shape.
SetLinebooleanSets the outline properties to the current shape.
SetPosXbooleanSets the x position of the drawing on the page.
SetPosYbooleanSets the y position of the drawing on the page.
SetPositionbooleanSets the position of the drawing on the page.
SetRotationbooleanSets the rotation angle to the current drawing object.
SetSizebooleanSets the 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.