TableLayoutRowStyleCollection.Insert(Int32, RowStyle) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Inserts a RowStyle into the TableLayoutRowStyleCollection at the specified position.
public:
void Insert(int index, System::Windows::Forms::RowStyle ^ rowStyle);
public void Insert (int index, System.Windows.Forms.RowStyle rowStyle);
member this.Insert : int * System.Windows.Forms.RowStyle -> unit
Public Sub Insert (index As Integer, rowStyle As RowStyle)
Parameters
- rowStyle
- RowStyle
The RowStyle to insert into the TableLayoutRowStyleCollection. The value can be null
.
Remarks
The Insert method reapplies the table layout to all the controls in the current TableLayoutPanel container.
The number of styles stored in a collection is limited only by available memory.
In collections of contiguous elements, such as the TableLayoutRowStyleCollection class, the elements that follow the insertion point move down to accommodate the inserted element. The indexes of the elements that are moved are also updated.
Applies to
See also
Commentaires
https://aka.ms/ContentUserFeedback.
Bientôt disponible : Tout au long de 2024, nous allons supprimer progressivement GitHub Issues comme mécanisme de commentaires pour le contenu et le remplacer par un nouveau système de commentaires. Pour plus d’informations, consultezEnvoyer et afficher des commentaires pour