ComboBox.ObjectCollection.Clear 方法

定義

ComboBox 中移除所有項目。

public:
 virtual void Clear();
public void Clear ();
abstract member Clear : unit -> unit
override this.Clear : unit -> unit
Public Sub Clear ()

實作

備註

當您從清單中移除專案時,已刪除專案的所有資訊都會遺失。 若要從 ComboBox 移除單一專案,請使用 RemoveRemoveAt 方法。

適用於

另請參閱