Skip to content

DropZone.FilterExtensions

property · DropZone · cAlgo.API Since 5.1

DesktopCLICloud

Gets or sets the file extensions filter.

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 string[] FilterExtensions {get; set;}
dropZone.FilterExtensions: list[str]

Returns string[]

Examples

var dropZone = new DropZone { Child = new TextBlock { Text = "Drop CSV or TXT files" }, FilterExtensions = new[] { "csv", "txt" } };
Chart.AddControl(dropZone);
Print("Accepted extensions: {0}", string.Join(", ", dropZone.FilterExtensions));
dropZone = DropZone()
child = TextBlock()
child.Text = "Drop CSV or TXT files"
dropZone.Child = child
dropZone.FilterExtensions = ["csv", "txt"]
api.Chart.AddControl(dropZone)