Outlining CollapseRootNode not working

SyntaxEditor for Windows Forms Forum

Posted 12 years ago by David Rutten - Robert McNeel & Associates
Version: 12.1.0303

I'm populating a control with a bunch of lines (some readonly, some not). I then want to collapse all outlining blocks except for the bit where my user is supposed to enter their own source. However, calling Document.Outlining.RootNode.CollapseDescendants() doesn't seem to do anything. Is that because the outlining cache hasn't been constructed yet? I've tried calling Document.Language.PerformAutomaticOutlining(Document, fullRange) (where language is a VB.NET add-on) but that didn't help. If I put a breakpoint on the line, RootNode has zero child-nodes.

All this code runs before the form that contains the SyntaxEditor is shown.

Comments (1)

Posted 12 years ago by Actipro Software Support - Cleveland, OH, USA

Hi David,

Did you turn on Automatic outlining?  The "Outlining" documentation topic tells you how to set the outlining mode to automatic.  I suspect you didn't do that if there are no nodes constructed when there should be.

Actipro Software Support

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

Add Comment

Please log in to a validated account to post comments.