MNGuiPanel.IsValid
Skip to content
mnscript
bool MNGuiPanel.IsValid() 

Description ​

Returns whether the UI element is valid.

Returns ​

bool - True if the UI element is valid.

Example ​

msc
using Surface;

MNGuiFrame frame = Surface.CreateApplicationFrame();
MNGuiPanel pnl = frame.GetPanel();

MNGuiPanel panel = Surface.CreatePanel(pnl);

// This will be true.
bool valid1 = panel.IsValid();

panel.Remove();

// This will be false.
bool valid2 = panel.IsValid();