ApiDrawing

class ApiDrawing

Description

Class representing a graphical object.

Instance Methods

GetWidth(): EMU

Returns the width of the current drawing.

GetHeight(): EMU

Returns the height of the current drawing.

GetClassType(): drawing

Returns a type of the ApiDrawing class.

SetSize(nWidth, nHeight)

Sets a size of the object (image, shape, chart) bounding box.

SetPosition(nFromCol, nColOffset, nFromRow, nRowOffset)

C.

GetLockValue(sType): bool

Returns the lock value for the specified lock type of the current drawing.

SetLockValue(sType, bValue): bool

Sets the lock value to the specified lock type of the current drawing.

Get Help

  • If you have any questions about ONLYOFFICE Docs, try the FAQ section first.
  • You can request a feature or report a bug by posting an issue on GitHub.
  • You can also ask our developers on ONLYOFFICE forum (registration required).