From 87ea07f5f0901605e03338176b10ddc5a03fa56b Mon Sep 17 00:00:00 2001 From: Igor Velikorossov Date: Mon, 7 Sep 2020 14:55:55 +1000 Subject: [PATCH 1/4] Update TableLayoutPanel.xml Related to dotnet/winforms#3578 --- xml/System.Windows.Forms/TableLayoutPanel.xml | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/xml/System.Windows.Forms/TableLayoutPanel.xml b/xml/System.Windows.Forms/TableLayoutPanel.xml index b7f4400a63f..aae01ec44ea 100644 --- a/xml/System.Windows.Forms/TableLayoutPanel.xml +++ b/xml/System.Windows.Forms/TableLayoutPanel.xml @@ -319,12 +319,16 @@ System.Int32 - Gets or sets the number of columns in the table. - The number of columns in the control. The default is 0. + Gets or sets the maximum number of columns allowed in the table./summary> + The maximum number of columns in the control. The default is 0. property does not create columns or allocate any backing memory. This allocation occurs when the columns are created, thus this property can be set to . + + Setting this property causes the table to undergo another layout operation. + You can specify both the and the properties for layouts with a known and fixed number of cells. You can also specify one property or the other if you expect the number of cells in your layout to grow, assuming that the property allows for such growth. If the value of is 0, the panel will grow by adding rows, and if the value of is 0, the panel will grow by adding columns. Specifying panel growth with the property is preferred to setting or to 0, however. Controls can be added or deleted from the table using the property. @@ -1182,12 +1186,16 @@ System.Int32 - Gets or sets the number of rows in the table. - The number of rows in the control. The default is 0. + Gets or sets the maximum number of rows allowed in the table. + The maximum number of rows in the control. The default is 0. property does not create rows or allocate any backing memory. This allocation occurs when the rows are created, thus this property can be set to . + + Setting this property causes the table to undergo another layout operation. + You can specify both the and the properties for layouts with a known and fixed number of cells. You can also specify one property or the other if you expect the number of cells in your layout to grow, assuming that the property allows for such growth. If the value of is 0, the panel will grow by adding rows, and if the value of is 0, the panel will grow by adding columns. Specifying panel growth with the property is preferred to setting or to 0, however. Controls can be added or deleted from the table using the property. From 7c2d3df00cd40de31df8ad49076bc7cd8fa1027c Mon Sep 17 00:00:00 2001 From: Igor Velikorossov Date: Mon, 7 Sep 2020 16:18:56 +1000 Subject: [PATCH 2/4] Update TableLayoutPanel.xml --- xml/System.Windows.Forms/TableLayoutPanel.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xml/System.Windows.Forms/TableLayoutPanel.xml b/xml/System.Windows.Forms/TableLayoutPanel.xml index aae01ec44ea..01b370efade 100644 --- a/xml/System.Windows.Forms/TableLayoutPanel.xml +++ b/xml/System.Windows.Forms/TableLayoutPanel.xml @@ -319,7 +319,7 @@ System.Int32 - Gets or sets the maximum number of columns allowed in the table./summary> + Gets or sets the maximum number of columns allowed in the table. The maximum number of columns in the control. The default is 0. Date: Mon, 7 Sep 2020 16:49:28 +1000 Subject: [PATCH 3/4] Update TableLayoutPanel.xml --- xml/System.Windows.Forms/TableLayoutPanel.xml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/xml/System.Windows.Forms/TableLayoutPanel.xml b/xml/System.Windows.Forms/TableLayoutPanel.xml index 01b370efade..20b0b8f8abd 100644 --- a/xml/System.Windows.Forms/TableLayoutPanel.xml +++ b/xml/System.Windows.Forms/TableLayoutPanel.xml @@ -325,7 +325,7 @@ property does not create columns or allocate any backing memory. This allocation occurs when the columns are created, thus this property can be set to . + Setting the property does not create columns or allocate any backing memory. This allocation occurs when the columns are created, thus this property can be set to . Setting this property causes the table to undergo another layout operation. @@ -1192,7 +1192,7 @@ property does not create rows or allocate any backing memory. This allocation occurs when the rows are created, thus this property can be set to . + Setting the property does not create rows or allocate any backing memory. This allocation occurs when the rows are created, thus this property can be set to . Setting this property causes the table to undergo another layout operation. From a88711dff4553ab0368c344a86e6b8b696224130 Mon Sep 17 00:00:00 2001 From: Genevieve Warren <24882762+gewarren@users.noreply.github.com> Date: Fri, 11 Sep 2020 10:41:10 -0700 Subject: [PATCH 4/4] Apply suggestions from code review --- xml/System.Windows.Forms/TableLayoutPanel.xml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/xml/System.Windows.Forms/TableLayoutPanel.xml b/xml/System.Windows.Forms/TableLayoutPanel.xml index 20b0b8f8abd..ce3794a58a8 100644 --- a/xml/System.Windows.Forms/TableLayoutPanel.xml +++ b/xml/System.Windows.Forms/TableLayoutPanel.xml @@ -325,7 +325,7 @@ property does not create columns or allocate any backing memory. This allocation occurs when the columns are created, thus this property can be set to . + Setting the property does not create columns or allocate any backing memory. Memory allocation occurs when the columns are created, so you can set this property to . Setting this property causes the table to undergo another layout operation. @@ -1192,7 +1192,7 @@ property does not create rows or allocate any backing memory. This allocation occurs when the rows are created, thus this property can be set to . + Setting the property does not create rows or allocate any backing memory. Memory allocation occurs when the rows are created, so you can set this property to . Setting this property causes the table to undergo another layout operation.