TableLayoutRowStyleCollection.Insert(Int32, RowStyle) Metod

Definition

Infogar en RowStyle i den TableLayoutRowStyleCollection angivna positionen.

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)

Parametrar

index
Int32

Det nollbaserade index där RowStyle ska infogas.

rowStyle
RowStyle

Infoga RowStyle i TableLayoutRowStyleCollection. Värdet kan vara null.

Kommentarer

Metoden Insert återutser tabelllayouten till alla kontroller i den aktuella TableLayoutPanel containern.

Antalet format som lagras i en samling begränsas endast av tillgängligt minne.

I samlingar med sammanhängande element, till exempel TableLayoutRowStyleCollection klassen, flyttas elementen som följer insättningspunkten nedåt för att rymma det infogade elementet. Indexen för de element som flyttas uppdateras också.

Gäller för

Se även