Main Content

Simulink.Mask.Constraints Class

Namespace: Simulink.Mask

Create mask parameter constraint

Description

Use an instance of the Simulink.Mask.Constraints to add or remove a mask parameter constraint rule.

The Simulink.Mask.Constraints class is a handle class.

Properties

expand all

Name of the mask parameter constraint, specified as a string scalar or character vector.

Example: 'evenNumberConstraint'

Attributes:

GetAccess
public
SetAccess
public
GetObservable
true
SetObservable
true

Data Types: string | char

Rules to create the mask parameter constraints, specified as a Simulink.Mask.ParameterConstraintRules object. For more information, see Rule Attributes

Attributes:

GetAccess
public
SetAccess
private
GetObservable
true
SetObservable
true

Data Types: Simulink.Mask.ParameterConstraintRules object

Methods

expand all

Alternatives

You can manage mask parameter constraints using Constraints in the Mask Editor dialog box. For more information, see Validating Mask Parameters Using Constraints.

Version History

Introduced in R2018a