Stateflow    
Note Properties

Stateflow API objects of type Note have the properties listed in the table below. See also Note Methods.

Property
Type
Acc
Description
Alignment
Enum
RW
Alignment of text in note box. Can be 'LEFT' (default), 'CENTER', or 'RIGHT'.
Chart
Chart
RO
Chart object containing this note.
Description
String
RW
Description of this note (default = ''). Equivalent to entering a description in the Description field of the properties dialog for this note.
Document
String
RW
Document link to this note (default = ''). Equivalent to entering the Document Link field of the properties dialog for this note.
Font.
Name
String
RO
Name of the font (default = 'Helvetica') for the text in this note. This property is read-only (RO) and set by the StateFont.Name property of the Chart object containing this note.
Font.
Angle
String
RW
Style of the font for the text in this note. Can be 'ITALIC' or 'NORMAL' (default). This property overrides the default style for this note, which is set by the StateFont.Angle property of the Chart object containing this note.
Font.
Size
Double
RW
Size of the font (default = 12) for the label text for this note. This property overrides the default size for this note, which is set by the StateFont.Size property of the Chart object containing this note. Equivalent to selecting Font Size > <font size> in the context menu for this note.
Font.
Weight
String
RW
Weight of the font for the label text for this note. Can be 'BOLD' or 'NORMAL' (default). This property overrides the default weight for the text in this note, which is set by the StateFont.Weight property of the Chart object containing this note.
Id
Integer
RO
Unique identifier assigned to this note to distinguish it from other objects in the model.
Interpretation
Enum
RW
How the text in this note is interpreted for text processing. Can be 'NORMAL' (default) or 'TEX'.
Machine
Machine
RO
Machine that contains this note.
Position
Rect
RW
Position and size of this note's box in the Stateflow chart, given in the form of a 1-by-4 array (default is [0 0 25 25]) consisting of the following:
  • (x,y) coordinates for the box's left upper vertex relative to the upper left vertex of the Stateflow diagram editor workspace
  • Width and height of the box
Subviewer
Chart or State
RO
State or chart in which this note can be graphically viewed.
Tag
Any Type
RW
Holds data of any type (default = []) for this note.
Text
String
RW
Label for this note (default = '?'). The text content for this note that you enter directly into the note in the diagram editor or in the Label field of the properties dialog for this note.


  Function Properties Transition Properties