Pageflex Document Action API
RemoveVariables Method (exposeHiddenContent)
Namespaces > Pageflex.Scripting > Document > RemoveVariables(Boolean)
Removes any Variable assigned to the element, and also removes any variables assigned to descendant elements.


- exposeHiddenContent (Boolean)
- Specifies how to handle variable elements which are hidden, i.e. whose Visible property is set to falseFalsefalse. If exposeHiddenContent is trueTruetrue, hidden variable elements will become visible. If exposeHiddenContent is falseFalsefalse, hidden variable elements will remain hidden.

Returns the number of variables removed.

Any variables assigned to this element or its descendants are removed. To remove a variable from this element without
affecting its descendants, see Variable

Exception | Condition |
---|---|
StaleScriptingObjectException | This object's associated internal object no longer exists. |

Assembly: PFScript Version: 8.0.7.1407 (Module: PFScript)