Пример #1
0
 internal FoldingSection(FoldingManager manager, int startOffset, int endOffset)
 {
     Debug.Assert(manager != null);
     this.manager = manager;
     this.StartOffset = startOffset;
     this.Length = endOffset - startOffset;
 }
Пример #2
0
 /// <summary>
 /// Uninstalls the folding manager.
 /// </summary>
 /// <exception cref="ArgumentException">The specified manager was not created using <see cref="Install"/>.</exception>
 public static void Uninstall(FoldingManager manager)
 {
     if (manager == null)
         throw new ArgumentNullException("manager");
     FoldingManagerInstallation installation = manager as FoldingManagerInstallation;
     if (installation != null) {
         installation.Uninstall();
     } else {
         throw new ArgumentException("FoldingManager was not created using FoldingManager.Install");
     }
 }