How to construct ITextPositionRangeCollection?

SyntaxEditor for WPF Forum

Posted 2 months 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 2 months 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 (v21.1.1) was released 1 month ago, which was after the last post in this thread.

Add Comment

Please log in to a validated account to post comments.