Browse Source

Updated View.Add/Remove API docs

Tig 1 year ago
parent
commit
312dda3d6c
1 changed files with 10 additions and 2 deletions
  1. 10 2
      Terminal.Gui/View/ViewSubViews.cs

+ 10 - 2
Terminal.Gui/View/ViewSubViews.cs

@@ -200,7 +200,7 @@ public partial class View
     /// <remarks>
     /// <para>
     ///     Normally Subviews will be disposed when this View is disposed. Removing a Subview causes ownership of the Subview's
-    ///     lifecycle to be transferred to the caller; the caller muse call <see cref="Dispose"/>.
+    ///     lifecycle to be transferred to the caller; the caller must call <see cref="Dispose"/>.
     /// </para>
     /// </remarks>
     public virtual void Remove (View view)
@@ -234,7 +234,15 @@ public partial class View
         }
     }
 
-    /// <summary>Removes all subviews (children) added via <see cref="Add(View)"/> or <see cref="Add(View[])"/> from this View.</summary>
+    /// <summary>
+    /// Removes all subviews (children) added via <see cref="Add(View)"/> or <see cref="Add(View[])"/> from this View.
+    /// </summary>
+    /// <remarks>
+    /// <para>
+    ///     Normally Subviews will be disposed when this View is disposed. Removing a Subview causes ownership of the Subview's
+    ///     lifecycle to be transferred to the caller; the caller must call <see cref="Dispose"/> on any Views that were added.
+    /// </para>
+    /// </remarks>
     public virtual void RemoveAll ()
     {
         if (_subviews is null)