ListBox.AllowSelection 属性

定义

获取一个值,该值指示 ListBox 当前是否启用了列表项的选择。Gets a value indicating whether the ListBox currently enables selection of list items.

protected:
 virtual property bool AllowSelection { bool get(); };
protected override bool AllowSelection { get; }
member this.AllowSelection : bool
Protected Overrides ReadOnly Property AllowSelection As Boolean

属性值

如果 SelectionMode 不是 None,则为 true;否则为 falsetrue if SelectionMode is not None; otherwise, false.

适用于