Skip to main content

Метод Position.insertEndnote

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

Вызов​


public Position insertEndnote()

Возвращает​

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

Пример​


Range range = document.getRange();
Range sentence = range.getBegin().getCurrentRange(TextUnit.Sentence);
Position pos = sentence.getContentEnd().insertEndnote();
pos.insertText("Endnote");