TableLayoutColumnStyleCollection.Remove(ColumnStyle) Metod

Definition

Tar bort den första förekomsten av en specifik ColumnStyle från TableLayoutColumnStyleCollection.

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

Parametrar

columnStyle
ColumnStyle

Ta ColumnStyle bort från TableLayoutColumnStyleCollection. 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 TableLayoutColumnStyleCollection 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