Skip to main content

Метод Position::insertFootnote

Метод вставляет сноску в текущую позицию.

Вызов​


Position insertFootnote()

Возвращает​

  • позиция содержимого сноски, тип Position.

Пример​


Range range = document.getRange();
Range sentence = range.getBegin().getCurrentRange(TextUnit::Sentence).get();
Position pos = sentence.getContentEnd().insertFootnote();
pos.insertText("Footnote");