I understand that many methods of the Word Javascript API return a Range or RangeCollection. But, is there a constructor function developers can use to create a new Range directly?
My use case is that I need to look at each paragraph, identify errors, and syntax highlight them. So, I'd like to just get the plain text of the paragraph using the API, find the errors on my own, and then use that information to create a Range that I can use to decorate the text (or add a Bounday/ContentControl to refer to it later).