ApiShape

class ApiShape

Description

Class representing a shape.

Instance Methods

GetClassType(): shape

Returns a type of the ApiShape class.

GetDocContent(): ApiDocumentContent

Returns the shape inner contents where a paragraph or text runs can be inserted.

GetContent(): ApiDocumentContent

Returns the shape inner contents where a paragraph or text runs can be inserted.

SetVerticalTextAlign(sVerticalAlign): boolean

Sets the vertical alignment to the shape content where a paragraph or text runs can be inserted.

SetPaddings(nLeft, nTop, nRight, nBottom)

Sets the text paddings to the current shape.

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).