System.Windows.Forms.ToolStripItemCollection.RemoveByKey C# (CSharp) Méthode

RemoveByKey() public méthode

public RemoveByKey ( string key ) : void
key string
Résultat void
		public virtual void RemoveByKey (string key)
		{
			if (this.IsReadOnly)
				throw new NotSupportedException ("This collection is read-only");

			ToolStripItem tsi = this[key];

			if (tsi != null)
				this.Remove (tsi);

			return;
		}
		#endregion