Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 12 additions & 4 deletions xml/System.Windows.Forms/TableLayoutPanel.xml
Original file line number Diff line number Diff line change
Expand Up @@ -319,12 +319,16 @@
<ReturnType>System.Int32</ReturnType>
</ReturnValue>
<Docs>
<summary>Gets or sets the number of columns in the table.</summary>
<value>The number of columns in the <see cref="T:System.Windows.Forms.TableLayoutPanel" /> control. The default is 0.</value>
<summary>Gets or sets the maximum number of columns allowed in the table.</summary>
<value>The maximum number of columns in the <see cref="T:System.Windows.Forms.TableLayoutPanel" /> control. The default is 0.</value>
<remarks>
<format type="text/markdown"><![CDATA[

## Remarks
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>.

Setting this property causes the table to undergo another layout operation.

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.

Controls can be added or deleted from the table using the <xref:System.Windows.Forms.TableLayoutPanel.Controls%2A> property.
Expand Down Expand Up @@ -1182,12 +1186,16 @@
<ReturnType>System.Int32</ReturnType>
</ReturnValue>
<Docs>
<summary>Gets or sets the number of rows in the table.</summary>
<value>The number of rows in the <see cref="T:System.Windows.Forms.TableLayoutPanel" /> control. The default is 0.</value>
<summary>Gets or sets the maximum number of rows allowed in the table.</summary>
<value>The maximum number of rows in the <see cref="T:System.Windows.Forms.TableLayoutPanel" /> control. The default is 0.</value>
<remarks>
<format type="text/markdown"><![CDATA[

## Remarks
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>.

Setting this property causes the table to undergo another layout operation.

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.

Controls can be added or deleted from the table using the <xref:System.Windows.Forms.TableLayoutPanel.Controls%2A> property.
Expand Down