Skip to main content

ApiRichContent

Class representing a rich content.

Methods​

The following table lists the available methods.

MethodReturnsDescription
AddElementbooleanAdds a rich paragraph using its position in rich content.
GetClassType"richContent"Returns a type of the ApiRichContent class.
GetContentApiRichParagraph[]Returns an array of rich paragraphs from the current rich content object.
GetCurrentParagraphApiRichParagraph | null | undefinedReturns the current paragraph where the cursor is located.
GetCurrentRunApiRichRun | null | undefinedReturns the current run where the cursor is located.
GetElementApiRichParagraph | null | undefinedReturns an rich paragraph by its position in the content.
GetElementsCountnumberReturns a number of elements in the current document.
GetTextstringReturns the inner text of the current document content object.
PushbooleanPushes a rich paragraph to a rich content.
RemoveAllElementsbooleanRemoves all the elements from the current rich content.
RemoveElementbooleanRemoves an element using the position specified.