[F] isVisible
isVisible(program, property, filter)
Determines if a property is visible according to the given visibility filter.
Parameters
Parameter | Type | Description |
---|---|---|
program | Program | the program in which the property occurs |
property | ModelProperty | the property to check |
filter | VisibilityFilter | the visibility filter to use |
Returns
boolean
true if the property is visible according to the filter, false otherwise
See
VisibilityFilter
isVisible(program, property, visibilities)
Determines if a property has any of the specified (legacy) visibility strings.
Parameters
Parameter | Type | Description |
---|---|---|
program | Program | the program in which the property occurs |
property | ModelProperty | the property to check |
visibilities | readonly string [] | the visibility strings to check for |
Returns
boolean
Deprecated
Calling isVisible
with an array of legacy visibility strings is deprecated. Use a VisibilityFilter
object instead.