hi,
I want to hide some line in a document I am displaying (not based around brackets or parsing but effectively arbitary). I have tried switching outlining into manual and creating my own outlines and then making them not visible but I dont seem to be able to get the manual outlines working.
Is there a better approach I could take ro do you have an example of creating manual outlines?
Code I tried:Thanks
-- Ken
I want to hide some line in a document I am displaying (not based around brackets or parsing but effectively arbitary). I have tried switching outlining into manual and creating my own outlines and then making them not visible but I dont seem to be able to get the manual outlines working.
Is there a better approach I could take ro do you have an example of creating manual outlines?
Code I tried:
private void btnLoad_Click( object sender, EventArgs e )
{
StringBuilder sb = new StringBuilder();
syntaxEditor1.Document.Outlining.Mode = ActiproSoftware.SyntaxEditor.OutliningMode.Automatic;
sb.AppendLine( "using {" );
for( int i = 0 ; i < 9 ; i++ )
{
sb.AppendLine( "Testing Line " + i.ToString() );
}
sb.AppendLine( "}" );
syntaxEditor1.Document.Text = sb.ToString();
}
private void btnOutline_Click( object sender, EventArgs e )
{
syntaxEditor1.Document.Outlining.Mode = ActiproSoftware.SyntaxEditor.OutliningMode.Manual;
syntaxEditor1.Document.Outlining.Add( null, 10, 100 );
}
-- Ken