How to construct ITextPositionRangeCollection?

SyntaxEditor for WPF Forum

Posted 3 years ago by Sunshine - Appeon
Version: 20.1.1

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?

Comments (1)

Answer - Posted 3 years ago by Actipro Software Support - Cleveland, OH, USA


There are static TextPositionRange.CreateCollection method overloads that will return the ITextPositionRangeCollection that you can pass into the Format() method.

Actipro Software Support

The latest build of this product (v24.1.2) was released 3 months ago, which was after the last post in this thread.

Add Comment

Please log in to a validated account to post comments.