Fast Find a Region or Outlining

SyntaxEditor for Windows Forms Forum

Posted 16 years ago by Leif Zars
Version: 4.0.0260
Avatar
To find a region so i can inset code int to it would the fastest way be to recursively search the File.Document.Outlining nodes?

Thanks
Leif Zars

Comments (2)

Posted 16 years ago by Kelly Leahy - Software Architect, Milliman
Avatar
What do you mean 'find a region'? You mean find #region? Are you usinng the add-in or something? If you're talking about the add-in you should probably post questions in the forum for that.

Recursively searching outlining nodes should be pretty fast, I would think.

Kelly Leahy Software Architect Milliman, USA

Posted 16 years ago by Actipro Software Support - Cleveland, OH, USA
Avatar
You could either build a recursive scan to look for them in the outlining (which may be pretty fast) or you could use a TextStream to search for the start region token. You'll have to experiment with which is the faster method for you


Actipro Software Support

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

Add Comment

Please log in to a validated account to post comments.