Share via


TreeViewDragItemsStartingEventArgs.Cancel 属性

定义

获取或设置一个值,该值指示是否应取消项拖动操作。

适用于 UWP 的等效 WinUI 2 APIMicrosoft.UI.Xaml.Controls.TreeViewDragItemsStartingEventArgs.CancelWindows 应用 SDK (,请参阅 ) Windows 应用 SDK命名空间

public:
 property bool Cancel { bool get(); void set(bool value); };
bool Cancel();

void Cancel(bool value);
public bool Cancel { get; set; }
var boolean = treeViewDragItemsStartingEventArgs.cancel;
treeViewDragItemsStartingEventArgs.cancel = boolean;
Public Property Cancel As Boolean

属性值

Boolean

bool

如果为 true ,则取消项拖动操作;否则为 false

注解

在处理程序中将此属性设置为 true ,以取消项拖动操作。

适用于