Window.WindowStartupLocation
property · Window · cAlgo.API
DesktopCLICloud
Get / Set the window startup location
Environment behaviour
CLI — not supported. Never shown: Show, Hide and Close send nothing; IsVisible stays false and window events never fire.
Cloud — not supported. Never shown: Show, Hide and Close send nothing; IsVisible stays false and window events never fire.
Definition
public WindowStartupLocation WindowStartupLocation {get; set;}
window.WindowStartupLocation: WindowStartupLocation
Returns WindowStartupLocation
Examples
var window = new Window { Title = "Centered on chart", Width = 300, Height = 200, WindowStartupLocation = WindowStartupLocation.CenterOwner };
window.Show();
window = Window()
window.Title = "Centered on chart"
window.Width = 300
window.Height = 200
window.WindowStartupLocation = WindowStartupLocation.CenterOwner
window.Show()