ControlBase.Dock
property · ControlBase · cAlgo.API
DesktopCLICloud
Specifies the dock position of the chart control instance. Works only inside the DockPanel.
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 Dock Dock {get; set;}
controlBase.Dock: Dock
Returns Dock
Examples
var dockPanel = new DockPanel { Width = 250, Height = 120 };
dockPanel.AddChild(new TextBlock { Text = "Header", Dock = Dock.Top });
dockPanel.AddChild(new Button { Text = "OK", Dock = Dock.Bottom });
Chart.AddControl(dockPanel);
dockPanel = DockPanel()
dockPanel.Width = 250
dockPanel.Height = 120
header = TextBlock()
header.Text = "Header"
header.Dock = Dock.Top
button = Button()
button.Text = "OK"
button.Dock = Dock.Bottom
dockPanel.AddChild(header)
dockPanel.AddChild(button)
api.Chart.AddControl(dockPanel)