Main Content

Stateflow.STTStateFont

Font for state labels in state transition tables

    Description

    Use a Stateflow.STTStateFont object to specify the font properties for state labels in the chart that is automatically generated for a state transition table.

    Creation

    Each state transition table has its own Stateflow.STTStateFont object. To access the Stateflow.STTStateFont object, use the StateFont property for the Stateflow.StateTransitionTableChart object.

    Properties

    expand all

    Stateflow® API objects have properties that correspond to the values you set in the Stateflow Editor. To access or modify a property, use dot notation. To access or modify multiple properties for multiple API objects, use the get and set functions, respectively. For more information, see Modify Properties and Call Functions of Stateflow Objects.

    Font name, specified as a string scalar or character vector.

    Font angle, specified as "NORMAL" or "ITALIC".

    Font weight, specified as "NORMAL" or "BOLD".

    Default font size for new states in the state transition table, specified as a scalar.

    Examples

    collapse all

    Access the Stateflow.STTStateFont object for the Stateflow.StateTransitionTableChart object stt.

    font = stt.StateFont;

    Set the font for state labels to Arial. Set the font angle to italics and the font weight to bold. Set the default font size to 8.

    font.Name = "Arial";
    font.Angle = "ITALIC";
    font.Weight = "BOLD";
    font.Size = 8;

    Version History

    Introduced before R2006a