WindowStartupLocation
enum cAlgo.API
DesktopCLICloud
Types of startup locations that you can use for windows
Definition
public enum WindowStartupLocation
Namespace: cAlgo.API · Group: Windows
Examples
var window = new Window { Title = "Centered", Width = 300, Height = 200, WindowStartupLocation = WindowStartupLocation.CenterScreen };
window.Show();
Print("Startup location: {0}", window.WindowStartupLocation);
window = Window()
window.Title = "Centered"
window.Width = 300
window.Height = 200
window.WindowStartupLocation = WindowStartupLocation.CenterScreen
window.Show()
api.Print(f"Startup location: {window.WindowStartupLocation}")
Values
| Name | Value | Description |
|---|---|---|
Manual | 0 | Default window startup location value. The startup location of a Window is set from code, or defers to the default Windows location. |
CenterScreen | 1 | Window is placed at the center of the screen. |
CenterOwner | 2 | Window is placed at the center of it is owner. |