Changing text Without Moving the Caret

SyntaxEditor for Windows Forms Forum

Posted 13 years ago by Leif Zars
Avatar
is it posible to change the text with out changeing the location of the selected line or the caret location?
The text i am inserting is in a Region "#Region " xxx " " and i don't want that region to expand when i add to it. can i determin if the region is expanded before i insert the text and if not close it when done programaticly?

Thanx

Leif ii

Comments (3)

Posted 13 years ago by Actipro Software Support - Cleveland, OH, USA
Avatar
Hi Leif,

Our text modification methods like UndoableInsert take a retainSelection parameter in one of their overloads. If that is specified, it tries not to modify the selection.


Actipro Software Support

Posted 13 years ago by Leif Zars
Avatar
OKay great, but the region get expanded when i add text to it. is there a way around this
Posted 13 years ago by Actipro Software Support - Cleveland, OH, USA
Avatar
Unfortunately that behavior is built into the document modification code and can't currently be altered.


Actipro Software Support

The latest build of this product (v2018.1 build 0341) was released 6 months ago, which was after the last post in this thread.

Add Comment

Please log in to a validated account to post comments.