Main Content

Simulink.Mask.Util.getDialogControlsByType

Mask dialog controls based on specified parameter type

Since R2022b

    Description

    Simulink.Mask.Util.getDialogControlsByType(blockPath,Type) returns mask dialog controls for the specified block that are based on the specified type.

    example

    Examples

    collapse all

    Load the model.

    load_system("slexMaskLookupTableControlExample.slx")

    Get dialog controls by its type.

    Simulink.Mask.Util.getDialogControlsByType...
        ("slexMaskLookupTableControlExample/Sharing Breakpoints"...
        ,"lookuptablecontrol")
    ans = 
      1x2 LookupTableControl array with properties:
    
        Name
        Prompt
        WordWrap
        Row
        Enabled
        Visible
        HorizontalStretch
        Tooltip
        Callback
        Table
        Breakpoints
        LookupTableObject
        DataSpecification
    
    

    Input Arguments

    collapse all

    Name of the block or the path to the masked block, specified as a character vector or string.

    Data Types: char | string

    Type of dialog control, specified as a character vector or string.

    Data Types: char | string

    Version History

    Introduced in R2022b