Share via


TreeView.CanReorderItems 屬性

定義

取得或設定值,這個值表示檢視中的專案是否可以透過用戶互動重新排序。

public:
 property bool CanReorderItems { bool get(); void set(bool value); };
/// [get: Microsoft.UI.Xaml.CustomAttributes.MUXPropertyDefaultValue(value="true")]
/// [set: Microsoft.UI.Xaml.CustomAttributes.MUXPropertyDefaultValue(value="true")]
bool CanReorderItems();

void CanReorderItems(bool value);
/// [Microsoft.UI.Xaml.CustomAttributes.MUXPropertyDefaultValue(value="true")]
/// [get: Microsoft.UI.Xaml.CustomAttributes.MUXPropertyDefaultValue(value="true")]
/// [set: Microsoft.UI.Xaml.CustomAttributes.MUXPropertyDefaultValue(value="true")]
bool CanReorderItems();

void CanReorderItems(bool value);
public bool CanReorderItems { [Microsoft.UI.Xaml.CustomAttributes.MUXPropertyDefaultValue(value="true")] get; [Microsoft.UI.Xaml.CustomAttributes.MUXPropertyDefaultValue(value="true")] set; }
[Microsoft.UI.Xaml.CustomAttributes.MUXPropertyDefaultValue(value="true")]
public bool CanReorderItems { [Microsoft.UI.Xaml.CustomAttributes.MUXPropertyDefaultValue(value="true")] get; [Microsoft.UI.Xaml.CustomAttributes.MUXPropertyDefaultValue(value="true")] set; }
var boolean = treeView.canReorderItems;
treeView.canReorderItems = boolean;
Public Property CanReorderItems As Boolean
<TreeView CanReorderItems="bool"/>

屬性值

Boolean

bool

如果檢視中的專案可以透過用戶互動重新排序,則為 true;否則為 false。 預設值為 True

屬性
Microsoft.UI.Xaml.CustomAttributes.MUXPropertyDefaultValueAttribute

適用於