語言

SelectableItemsView.SelectionMode 屬性

定義

取得或設定選擇模式,決定使用者是否可以選擇無物品、單一物品或多個物品。

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 完全關閉選擇功能。

適用於