Skip to content

DropZone.IsDirectoryDropAllowed

property · DropZone · cAlgo.API Since 5.1

DesktopCLICloud

Gets or sets whether user can drop directories or not.

Environment behaviour

CLI — not supported. Accepted without error but never displayed, so control events such as Click are never raised.

Cloud — not supported. Accepted without error but never displayed, so control events such as Click are never raised.

Definition

public bool IsDirectoryDropAllowed {get; set;}
dropZone.IsDirectoryDropAllowed: bool

Returns bool

Examples

var dropZone = new DropZone { Child = new TextBlock { Text = "Drop a folder" }, IsDirectoryDropAllowed = true };
Chart.AddControl(dropZone);
Print("Directories allowed: {0}", dropZone.IsDirectoryDropAllowed);
dropZone = DropZone()
child = TextBlock()
child.Text = "Drop a folder"
dropZone.Child = child
dropZone.IsDirectoryDropAllowed = True
api.Chart.AddControl(dropZone)
api.Print(f"Directories allowed: {dropZone.IsDirectoryDropAllowed}")