Changing text Without Moving the Caret

SyntaxEditor for Windows Forms Forum

Posted 19 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 19 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 19 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 19 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 (v24.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.