
I have implemented the formatting method by inheriting ITextFormatter. In some cases, I want to manually call the Format method.
But there is an ITextPositionRangeCollection in the parameter, do I need to create a class to inherit and build it? This operation seems a bit awkward, is this the correct way?