Skip to main content
Inspiring
February 6, 2025
Question

WarxRun from selected text

  • February 6, 2025
  • 1 reply
  • 141 views

I want to find the no of WaxRun from selected text, I have ITextFocus interface which s retrieved from ITextModel interface.

1 reply

Legend
February 6, 2025

Forget the ITextFocus, read the programming guide about selection suites.

You'll implement one that picks up the selected text model and text range from ITextTarget.

Ensure that the text is already composed, and does not refer to overset.

To get to the wax, query the frame list from the text model, it has an IWaxStrand.

The wax strand gives you a wax iterator. Search the first wax line for your range, then descend to wax runs.