API ScriptRegion IsProtected

Returns whether the region is currently protected.
 isProtected, isProtectedExplicitly = ScriptRegion:IsProtected()
==Returns==
:;isProtected: - true if the frame is currently protected.
:;isProtectedExplicitly: - true if the widget was explicitly specified as protected at the time of creation.
==Details==
* You cannot call method affecting the frame's position, visibility, interactivity, or attributes on protected (isProtected) frames from insecure code while the is in effect.
* Anchoring or parenting a protected frame to another frame makes that frame implicitly protected as well (isProtected, but not isExplicitlyProtected). This applies recursively. Removing all protected children/anchors will clear implicit protection.
==Patch changes==
==See also==
* Object security