How to construct ITextPositionRangeCollection?

SyntaxEditor for WPF Forum

Posted 3 years ago by Sunshine - Appeon
Version: 20.1.1
Avatar

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
Avatar

Hello,

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 1 days ago, which was after the last post in this thread.

Add Comment

Please log in to a validated account to post comments.