How to return the position of first and last char in a paragraph,

Hi, I have a question to get the location of first and last char in a paragraph in Python aspose. and check if this paragraph is only one line?

We have opened the following new ticket(s) in our internal issue tracking system and will deliver their fixes according to the terms mentioned in Free Support Policies.

  Issue ID(s): WORDSNET-24828

You can obtain Paid Support services if you need support on a priority basis, along with the direct access to our Paid Support management team.

@ZZZ21321 This can be achieved using LayoutCollector and LayoutEnumerator classes. It is required to wrap whole paragraph into a bookmark and then determine rectangle of bookmark start and bookmark end using LayoutCollector and LayoutEnumerator. But currently this cannot be achieve in Python version due to the defect WORDSNET-24828, which had been found in another your thread:

We will keep you informed and let you know once the issue is resolved and this functionality can be used in Python version.

@ZZZ21321 We just released new 23.2 version of Aspose.Words for Python, which includes the fix of WORDSNET-24828. The code example provided in this thread might be useful for you: