Window.OwnerType
property · Window · cAlgo.API
DesktopCLICloud
Get / Set the window owner
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 OwnerType OwnerType {get; set;}
window.OwnerType: OwnerType
Returns OwnerType
Examples
var window = new Window { Title = "Independent window", Width = 300, Height = 200, OwnerType = OwnerType.None };
window.Show();
Print("Owner type: {0}", window.OwnerType);
window = Window()
window.Title = "Independent window"
window.Width = 300
window.Height = 200
window.OwnerType = getattr(OwnerType, "None")
window.Show()
api.Print(f"Owner type: {window.OwnerType}")