Skip to main content

ApiDrawing

Represents the ApiDrawing class.

Methods

MethodReturnsDescription
GetClassType"drawing"Returns a type of the ApiDrawing class.
GetContentApiDocumentContentReturns the drawing inner contents where a paragraph or text runs can be inserted if it exists.
GetHeightEMUReturns the height of the current drawing.
GetLockValuebooleanReturns the lock value for the specified lock type of the current drawing.
GetParentSheetApiWorksheetReturns the parent sheet of the current drawing.
GetWidthEMUReturns the width of the current drawing.
SetLockValuebooleanSets the lock value to the specified lock type of the current drawing.
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.
SetSizeNoneSets a size of the object (image, shape, chart) bounding box.