ControlBase.UniqueId
property · ControlBase · cAlgo.API
DesktopCLICloud
Gets the unique identifier of a chart control.
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 Guid UniqueId {get;}
controlBase.UniqueId: Guid
Returns Guid
Examples
var button = new Button { Text = "Buy" };
Chart.AddControl(button);
Print("Button id: {0}", button.UniqueId);
button = Button()
button.Text = "Buy"
api.Chart.AddControl(button)
api.Print(f"Button id: {button.UniqueId}")