TableLayoutStyleCollection.Add(TableLayoutStyle) Méthode
Définition
Important
Certaines informations portent sur la préversion du produit qui est susceptible d’être en grande partie modifiée avant sa publication. Microsoft exclut toute garantie, expresse ou implicite, concernant les informations fournies ici.
Ajoute un nouveau TableLayoutStyle à la fin de la collection active.
public:
int Add(System::Windows::Forms::TableLayoutStyle ^ style);
public int Add(System.Windows.Forms.TableLayoutStyle style);
member this.Add : System.Windows.Forms.TableLayoutStyle -> int
Public Function Add (style As TableLayoutStyle) As Integer
Paramètres
- style
- TableLayoutStyle
À TableLayoutStyle ajouter au TableLayoutStyleCollection.
Retours
Position dans laquelle le nouvel élément a été inséré.
Exceptions
style est déjà affecté à un autre propriétaire. Vous devez d’abord le supprimer de son emplacement actuel ou le cloner.
Remarques
La Add méthode réapplique la disposition de la table à tous les contrôles du conteneur actuel TableLayoutPanel .
Le nombre de styles stockés dans une collection est limité uniquement par la mémoire disponible.