|
319 | 319 | <ReturnType>System.Int32</ReturnType>
|
320 | 320 | </ReturnValue>
|
321 | 321 | <Docs>
|
322 |
| - <summary>Gets or sets the number of columns in the table.</summary> |
323 |
| - <value>The number of columns in the <see cref="T:System.Windows.Forms.TableLayoutPanel" /> control. The default is 0.</value> |
| 322 | + <summary>Gets or sets the maximum number of columns allowed in the table.</summary> |
| 323 | + <value>The maximum number of columns in the <see cref="T:System.Windows.Forms.TableLayoutPanel" /> control. The default is 0.</value> |
324 | 324 | <remarks>
|
325 | 325 | <format type="text/markdown"><![CDATA[
|
326 | 326 |
|
327 | 327 | ## Remarks
|
| 328 | + Setting the <xref:System.Windows.Forms.TableLayoutPanel.ColumnCount%2A> 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 <xref:System.Int32.MaxValue>. |
| 329 | + |
| 330 | + Setting this property causes the table to undergo another layout operation. |
| 331 | +
|
328 | 332 | You can specify both the <xref:System.Windows.Forms.TableLayoutPanel.ColumnCount%2A> and the <xref:System.Windows.Forms.TableLayoutPanel.RowCount%2A> 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 <xref:System.Windows.Forms.TableLayoutPanel.GrowStyle%2A> property allows for such growth. If the value of <xref:System.Windows.Forms.TableLayoutPanel.RowCount%2A> is 0, the panel will grow by adding rows, and if the value of <xref:System.Windows.Forms.TableLayoutPanel.ColumnCount%2A> is 0, the panel will grow by adding columns. Specifying panel growth with the <xref:System.Windows.Forms.TableLayoutPanel.GrowStyle%2A> property is preferred to setting <xref:System.Windows.Forms.TableLayoutPanel.RowCount%2A> or <xref:System.Windows.Forms.TableLayoutPanel.ColumnCount%2A> to 0, however.
|
329 | 333 |
|
330 | 334 | Controls can be added or deleted from the table using the <xref:System.Windows.Forms.TableLayoutPanel.Controls%2A> property.
|
|
1182 | 1186 | <ReturnType>System.Int32</ReturnType>
|
1183 | 1187 | </ReturnValue>
|
1184 | 1188 | <Docs>
|
1185 |
| - <summary>Gets or sets the number of rows in the table.</summary> |
1186 |
| - <value>The number of rows in the <see cref="T:System.Windows.Forms.TableLayoutPanel" /> control. The default is 0.</value> |
| 1189 | + <summary>Gets or sets the maximum number of rows allowed in the table.</summary> |
| 1190 | + <value>The maximum number of rows in the <see cref="T:System.Windows.Forms.TableLayoutPanel" /> control. The default is 0.</value> |
1187 | 1191 | <remarks>
|
1188 | 1192 | <format type="text/markdown"><![CDATA[
|
1189 | 1193 |
|
1190 | 1194 | ## Remarks
|
| 1195 | + Setting the <xref:System.Windows.Forms.TableLayoutPanel.RowCount%2A> 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 <xref:System.Int32.MaxValue>. |
| 1196 | + |
| 1197 | + Setting this property causes the table to undergo another layout operation. |
| 1198 | +
|
1191 | 1199 | You can specify both the <xref:System.Windows.Forms.TableLayoutPanel.ColumnCount%2A> and the <xref:System.Windows.Forms.TableLayoutPanel.RowCount%2A> 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 <xref:System.Windows.Forms.TableLayoutPanel.GrowStyle%2A> property allows for such growth. If the value of <xref:System.Windows.Forms.TableLayoutPanel.RowCount%2A> is 0, the panel will grow by adding rows, and if the value of <xref:System.Windows.Forms.TableLayoutPanel.ColumnCount%2A> is 0, the panel will grow by adding columns. Specifying panel growth with the <xref:System.Windows.Forms.TableLayoutPanel.GrowStyle%2A> property is preferred to setting <xref:System.Windows.Forms.TableLayoutPanel.RowCount%2A> or <xref:System.Windows.Forms.TableLayoutPanel.ColumnCount%2A> to 0, however.
|
1192 | 1200 |
|
1193 | 1201 | Controls can be added or deleted from the table using the <xref:System.Windows.Forms.TableLayoutPanel.Controls%2A> property.
|
|
0 commit comments