Quantcast
Channel: ScintillaNET Forum Rss Feed
Viewing all articles
Browse latest Browse all 296

New Post: [Solved] How to do fold / unfold all actions?

$
0
0
I found a solution:
void FoldAll(string target)
{
    foreach(ScintillaNET.Line linear in ActiveDocument.Scintilla.Lines)
    {
        if(linear.IsFoldPoint && linear.FoldExpanded && linear.Text.Contains(target))
        {
            linear.ToggleFoldExpanded();
        }
    }
}

void UnfoldAll(string target)
{
    foreach(ScintillaNET.Line linear in ActiveDocument.Scintilla.Lines)
    {
        if(linear.IsFoldPoint && !linear.FoldExpanded && linear.Text.Contains(target))
        {
            linear.ToggleFoldExpanded();
        }
    }
}

Viewing all articles
Browse latest Browse all 296

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>