Main Content

Simulink.Mask.EnumerationTypeOptions Class

Parse information from enumeration file derived from Simulink.IntEnumType and Simulink.Mask.EnumerationBase

Since R2021a

Description

Create an instance of Simulink.Mask.EnumerationTypeOptions to parse the information from the enumeration file into the object.

Creation

enumObj =Simulink.Mask.EnumerationTypeOptions('ExternalEnumerationClass','XFactor')

Properties

expand all

Public Properties

This property holds the name of the enumeration class file.

Data Types: char

This property holds the member name, display name, and numeric value specified in the enumeration file.

Data Types: Simulink.Mask.EnumerationMember

Examples

collapse all

obj = Simulink.Mask.EnumerationTypeOptions
('ExternalEnumerationClass', 'XFactor') 
obj = 
    EnumerationTypeOptions with properties: 

    ExternalEnumerationClass: 'XFactor'
    EnumerationMembers: [1x3 Simulink.Mask.EnumerationMember] 
obj.EnumerationMembers(1)
ans = 
  EnumerationMember with properties: 
       MemberName: 'alpha' 
  DescriptiveName: 'alpha (.001)' 
            Value: 1.0000e-03 

Note

The properties are read only. You can modify the enumeration file to change the properties of the enumeration members.

Version History

Introduced in R2021a