DropZone constructor
constructor · DropZone · cAlgo.API Since 5.1
DesktopCLICloud
Initializes a new instance of the DropZone class.
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 DropZone()
DropZone()
Examples
var dropZone = new DropZone { Child = new TextBlock { Text = "Drop a CSV file here" } };
dropZone.Dropped += args => Print("Dropped {0} file(s)", args.FilePaths.Count);
Chart.AddControl(dropZone);
dropZone = DropZone()
child = TextBlock()
child.Text = "Drop a CSV file here"
dropZone.Child = child
dropZone.Dropped += lambda args: api.Print(f"Dropped {args.FilePaths.Count} file(s)")
api.Chart.AddControl(dropZone)