Редагувати

Поділитися через


ToolStripItemCollection.RemoveByKey(String) Method

Definition

Removes the item that has the specified key.

public:
 virtual void RemoveByKey(System::String ^ key);
public virtual void RemoveByKey (string key);
public virtual void RemoveByKey (string? key);
abstract member RemoveByKey : string -> unit
override this.RemoveByKey : string -> unit
Public Overridable Sub RemoveByKey (key As String)

Parameters

key
String

The key of the ToolStripItem to remove.

Exceptions

Remarks

The key parameter value corresponds to the ToolStripItem.Name property.

Applies to