Is there a way to prevent a region from collapsing?

SyntaxEditor for Windows Forms Forum

Posted 12 years ago by netme
Version: 4.0.0233
Avatar
I need to use regions, but users are not allowed to expand them.
Not with double click or anything else.

I've tried the following:
private void txtExpression_MouseDoubleClick(object sender, MouseEventArgs e)
{
txtExpression.Document.Outlining.RootNode.CollapseDescendants();
}

The problem with this approach is that the user actually sees the region being expanded and collapse.
Is there another way to accomplish that? or maybe a way to tell the control to freeze its painting during the MouseDoubleClick event... ?

Thanks,

Comments (1)

Posted 12 years ago by Actipro Software Support - Cleveland, OH, USA
Avatar
No but that is an excellent idea. How ideally would you like this feature implemented?


Actipro Software Support

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

Add Comment

Please log in to a validated account to post comments.