TableLayoutRowStyleCollection.Remove(RowStyle) Metod

Definition

Tar bort den första förekomsten av ett specifikt objekt från TableLayoutRowStyleCollection.

public:
 void Remove(System::Windows::Forms::RowStyle ^ rowStyle);
public void Remove(System.Windows.Forms.RowStyle rowStyle);
member this.Remove : System.Windows.Forms.RowStyle -> unit
Public Sub Remove (rowStyle As RowStyle)

Parametrar

rowStyle
RowStyle

Ta RowStyle bort från TableLayoutRowStyleCollection. Värdet kan vara null.

Kommentarer

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

I samlingar med sammanhängande element, till exempel TableLayoutRowStyleCollection klassen, flyttas de element som följer borttagningspunkten upp för att uppta den tomma platsen. Indexen för de element som flyttas uppdateras också.

Gäller för

Se även