Main Content

Stateflow.NoteFont

Font properties for annotations

    Description

    Use a Stateflow.NoteFont object to specify the font properties for an annotation.

    Creation

    Each annotation has its own Stateflow.NoteFont object. To access the Stateflow.NoteFont object, use the Font property for the Stateflow.Annotation 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.

    This property is read-only.

    Font name, specified as a character vector. The StateFont.Name property of the chart that contains the annotation sets the value of this property.

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

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

    Font size, specified as a scalar. The StateFont.Size property of the chart that contains the annotation sets the default value of this property.

    Examples

    collapse all

    Access the Stateflow.NoteFont object for the Stateflow.Annotation object annotation.

    font = annotation.Font;

    Set the font angle to italics, the font weight to bold, and the font size to 8.

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

    Version History

    Introduced before R2006a