GetSelectedText

function GetSelectedText(
  prop: object,
  prop.NewLine: boolean,
  prop.NewLineParagraph: boolean,
  prop.Numbering: boolean,
  prop.Math: boolean,
  prop.TableCellSeparator: string,
  prop.TableRowSeparator: string,
  prop.ParaSeparator: string,
  prop.TabSymbol: string,
  prop.NewLineSeparator: string,
): string

Description

Returns the selected text from the document.

Parameters

propobject

The resulting string display properties.

prop.NewLineboolean

Defines if the resulting string will include line boundaries or not (they will be replaced with '\r').

prop.NewLineParagraphboolean

Defines if the resulting string will include paragraph line boundaries or not.

prop.Numberingboolean

Defines if the resulting string will include numbering or not.

prop.Mathboolean

Defines if the resulting string will include mathematical expressions or not.

prop.TableCellSeparatorstring

Defines how the table cell separator will be specified in the resulting string.

prop.TableRowSeparatorstring

Defines how the table row separator will be specified in the resulting string.

prop.ParaSeparatorstring

Defines how the paragraph separator will be specified in the resulting string.

prop.TabSymbolstring

Defines how the tab will be specified in the resulting string.

prop.NewLineSeparatorstring

Defines how the line separator will be specified in the resulting string (this property has the priority over NewLine).

Returns

string

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