SelectableItemsView.SelectionMode 屬性
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
取得或設定選擇模式,決定使用者是否可以選擇無物品、單一物品或多個物品。
public:
property Microsoft::Maui::Controls::SelectionMode SelectionMode { Microsoft::Maui::Controls::SelectionMode get(); void set(Microsoft::Maui::Controls::SelectionMode value); };
public Microsoft.Maui.Controls.SelectionMode SelectionMode { get; set; }
member this.SelectionMode : Microsoft.Maui.Controls.SelectionMode with get, set
Public Property SelectionMode As SelectionMode
屬性值
SelectionMode 值。 預設值為 None。
備註
設定為 Single 允許一次選擇一個項目、 Multiple 允許選擇多個項目,或 None 完全關閉選擇功能。