Updates the foldings in this FoldingManager using the given new foldings.
            This method will try to detect which new foldings correspond to which existing foldings; and will keep the state
            (IsFolded) for existing foldings.
            
 Declaration Syntax
 Declaration Syntax| C# | Visual Basic | Visual C++ | 
public void UpdateFoldings( IEnumerable<NewFolding> newFoldings, int firstErrorOffset )
Public Sub UpdateFoldings ( _ newFoldings As IEnumerable(Of NewFolding), _ firstErrorOffset As Integer _ )
public: void UpdateFoldings( IEnumerable<NewFolding^>^ newFoldings, int firstErrorOffset )
 Parameters
 Parameters- newFoldings (IEnumerable<(Of <(<'NewFolding>)>)>)
- The new set of foldings. These must be sorted by starting offset.
- firstErrorOffset (Int32)
- The first position of a parse error. Existing foldings starting after this offset will be kept even if they don't appear in newFoldings. Use -1 for this parameter if there were no parse errors.
Assembly: ICSharpCode.AvalonEdit (Module: ICSharpCode.AvalonEdit.dll) Version: 5.0.0.4238

