Skip to main content

ApiDrawing

Represents the ApiDrawing class.

Methods

MethodReturnsDescription
FillbooleanSets the fill formatting properties to the current graphic object.
GetClassType"drawing"Returns a type of the ApiDrawing class.
GetFlipHboolean | nullGet horizontal flip of current drawing.
GetFlipVboolean | nullGet vertical flip of current drawing.
GetHeightEMUReturns the height of the current drawing.
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.
SetFlipHbooleanSets the horizontal flip of the current drawing.
SetFlipVbooleanSets the vertical flip of the current drawing.
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.
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.
UnselectbooleanRemoves the current drawing from the selection.