Print

How to use Outlining feature of the SyntaxEdit control?

SyntaxEdit supports code outlining, which is a text navigation feature that can make navigation of large structured texts more effective by visually replacing them with shorter representation.
To switch outlining mode on, you need to set Outlining.AllowOutlining property to true.
There are two ways of creating outline sections. First one is direct definition of outline sections which can be implemented the following way:

syntaxEdit1.Outlining.Outline(new Point(0, 0), new Point(int.MaxValue, 0), 0, "...").Visible = false;

Another way to use SyntaxParser already supporting automatic outlining such as CsParser, JsParser, VbParser, CParser and XmlParser.


Comment

No Very




Captcha Image