Skip to main content

ApiDocumentContent

Represents the ApiDocumentContent class.

Methods

MethodReturnsDescription
AddElementNoneAdds a paragraph or a table or a blockLvl content control using its position in the document content.
GetAllChartsApiChart[]Returns a collection of chart objects from the document content.
GetAllDrawingObjectsDrawing[]Returns a collection of drawing objects from the document content.
GetAllImagesApiImage[]Returns a collection of image objects from the document content.
GetAllOleObjectsApiOleObject[]Returns a collection of OLE objects from the document content.
GetAllParagraphsApiParagraph[]Returns an array of all paragraphs from the current document content.
GetAllShapesApiShape[]Returns a collection of shape objects from the document content.
GetAllTablesApiParagraph[]Returns an array of all tables from the current document content.
GetClassType"documentContent"Returns a type of the ApiDocumentContent class.
GetContentDocumentElement[]Returns an array of document elements from the current ApiDocumentContent object.
GetElementDocumentElementReturns an element by its position in the document.
GetElementsCountnumberReturns a number of elements in the current document.
GetRangeApiRangeReturns a Range object that represents the part of the document contained in the document content.
GetTextstringReturns the inner text of the current document content object.
PushbooleanPushes a paragraph or a table to actually add it to the document.
RemoveAllElementsNoneRemoves all the elements from the current document or from the current document element.\ 💡 When all elements are removed, a new empty paragraph is automatically created. If you want to add\ content to this paragraph, use the ApiDocumentContent#GetElement method.
RemoveElementNoneRemoves an element using the position specified.
ToJSONJSONConverts the ApiDocumentContent object into the JSON object.