ListControl.ClearSelection 方法

定义

清除列表选择并将所有项的 Selected 属性设置为 false。Clears out the list selection and sets the Selected property of all items to false.

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

注解

使用此方法可重置控件,以便不选择任何项。Use this method to reset the control so that no items are selected.

适用于

另请参阅