Onetastic Macro Documentation >
>
>
GetFormattedObjectContent GetFormattedObjectContent
Returns the contents of an object in either plain text or HTML format. This can be useful to put the content into clipboard using Clipboard_Set, or process it further. This function can return the content of the following types of objects: Outline Paragraph Table Cell Image Text.
Syntax
String GetFormattedObjectContent(
Outline|Paragraph|Table|Cell|Image|Text object,
String format)
Parameters
- Outline|Paragraph|Table|Cell|Image|Text object
- The object to return the content of.
- String format
- The format of the content. Acceptable values are: html, plain.
Examples
$outline = GetCurrentPage().outlines[0]
Clipboard_Set("html", GetFormattedObjectContent($outline, "html"))
|