Stateflow | ![]() ![]() |
See also Graphical Methods.
For a key to the abbreviations for object types in the Object column, see Reference Table Column Descriptions.
Property |
Type |
Acc |
Description |
Objects |
Alignment |
Enum |
RW |
Alignment of text in note box. Can be 'LEFT' , 'CENTER' , or 'RIGHT' . |
N |
ArrowSize |
Double |
RW |
Size of transition arrows coming into this object. Equivalent to selecting Arrowhead Size from the context menu for this state. |
S B F T J |
ChartColor |
[R,G,B] |
RW |
Background color of this chart in a 1-by-3 RGB array with each value normalized on a scale of 0 to 1. |
C |
DrawStyle |
String |
RW |
Set the drawing style for this transition. Set to 'STATIC' for static transitions or 'SMART' for smart transitions. Equivalent to selecting the Smart switch toggle from the context menu for this transition. |
T |
Editor |
Editor |
RO |
Editor object for this chart. |
C |
ErrorColor |
[R,G,B] |
RW |
Set the RGB color for errors in the Stateflow Diagram Editor in a 1-by-3 RGB array with each value normalized on a scale of 0 to 1. Equivalent to changing Error color in the Colors & Fonts dialog under Edit > Style. |
C |
Font.Angle |
Enum |
RW |
Style of the font for the text in this note. Can be 'ITALIC' or 'NORMAL' . This property overrides the default style for this note, which is set by the StateFont.Angle property of the Chart object containing this note. |
N |
Font.Name |
String |
RO |
Name of the font 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. |
N |
Font.Size |
Double |
RW |
Size of the font 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. |
N |
Font.Weight |
Enum |
RW |
Weight of the font for the label text for this note. Can be 'BOLD' or 'NORMAL' . 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. |
N |
FontSize |
Double |
RW |
Size of the font for the label text for this object. This property overrides the default size for this object, which is set by the StateFont.Size property (TransitionFont.Size for transitions) of the Chart object containing this object. Equivalent to selecting Font Size > <font size> in the context menu for this object. |
S B F T |
Interpretation |
Enum |
RW |
How the text in this note is interpreted for text processing. Can be 'NORMAL' or 'TEX' . |
N |
JunctionColor |
[R,G,B] |
RW |
Set the RGB color for junctions in the Stateflow Diagram Editor in a 1-by-3 RGB array with each value normalized on a scale of 0 to 1. Equivalent to changing the Junction color in the Colors & Fonts dialog under Edit > Style. |
C |
LabelPosition |
Rect |
RW |
Position and size of this transition's label in the Stateflow chart, given in the form of a 1-by-4 array consisting of the following: |
T |
SelectionColor |
[R,G,B] |
RW |
Color of selected items for this chart in a 1-by-3 RGB array with each value normalized on a scale of 0 to 1. Equivalent to changing the Selection color in the Colors & Fonts dialog under Edit > Style. |
C |
StateColor |
[R,G,B] |
RW |
Color of the state box in a 1-by-3 RGB array with each value normalized on a scale of 0 to 1. Equivalent to changing the State/Frame color in the Colors & Fonts dialog under Edit > Style. |
C |
StateFont. Angle |
Enum |
RW |
Font angle for the labels of State, Box, Function, and Note objects. Can be 'ITALIC' or 'NORMAL' . Equivalent to Italic and Regular settings when changing the font style of the StateLabel in the Colors & Fonts dialog under Edit > Style. Use with property StateFont.Weight to achieve Bold Italic style.You can individually override this property with the Font.Angle property for Note objects. |
C |
StateFont. Name |
String |
RW |
Font style used for the labels of State, Box, Function, and Note objects. Enter a string for the font name -- no selectable values. Font remains set to previous font for unrecognized font strings. Equivalent to changing the font of StateLabel in the Colors & Fonts dialog under Edit > Style. |
C |
StateFont. Size |
Integer |
RW |
Font size for the labels of State, Box, Function, and Note objects. Equivalent to changing the font size of StateLabel in the Colors & Fonts dialog under Edit > Style. You can individually override this property with the FontSize property for State, Box, and Function objects and with the Font.Size property for Note objects. |
C |
StateFont. Weight |
Enum |
RW |
Font weight for state labels. Can be 'BOLD' or 'NORMAL' . Equivalent to Bold and Regular settings of StateLabel in the Colors & Fonts dialog under Edit > Style. Use with the property StateFont.Angle to achieve Bold Italic style.You can individually override this property with the Font.Weight property for Note objects. |
C |
StateLabelColor |
[R,G,B] |
RW |
Color of the state labels for this chart in 1-by-3 RGB array with each value normalized on a scale of 0 to 1. Equivalent to changing the label color of StateLabel in the Colors & Fonts dialog under Edit > Style. |
C |
Subviewer |
Chart or State |
RO |
State or chart in which this object can be graphically viewed. |
S B F N T J |
TransitionColor |
[R,G,B] |
RW |
Set the RGB color for transitions in the Stateflow Diagram Editor in a 1-by-3 RGB array with each value normalized on a scale of 0 to 1. Equivalent to changing the Transition color in the Colors & Fonts dialog under Edit > Style. |
C |
TransitionFont. Angle (Enum, RW) |
Enum |
RW |
Font angle for state labels. Can be 'ITALIC' or 'NORMAL' . Equivalent to Italic and Regular settings when changing font style of TransitionLabel in the Colors & Fonts dialog under Edit > Style. Use with property StateFont.Weight to achieve Bold Italic style. |
C |
TransitionFont. Name |
String |
RW |
Font used for transition labels. Enter string for font name (no selectable values). Font remains set to previous font for unrecognized font strings. Equivalent to changing the font of TransitionLabel in the Colors & Fonts dialog under Edit > Style. |
C |
TransitionFont. Size |
Integer |
RW |
Default font size for transition labels. Truncated to closest whole number less than or equal to entered value. Equivalent to changing font size of TransitionLabel in the Colors & Fonts dialog under Edit > Style. |
C |
TransitionFont. Weight |
Enum |
RW |
Font weight for transition labels. Can be 'BOLD' or 'NORMAL' . Equivalent to Bold and Regular settings when changing font style of TransitionLabel in the Colors & Fonts dialog under Edit > Style. Use with property StateFont.Angle to achieve Bold Italic style. |
C |
Transition LabelColor |
[R,G,B] |
RW |
Color of the transition labels for this chart in 1-by-3 RGB array with each value normalized on a scale of 0 to 1. Equivalent to changing the label color of TransitionLabel in the Colors & Fonts dialog under Edit > Style. |
C |
Visible |
Boolean |
RO |
If true, indicates that this object is currently displayed in a Stateflow diagram editor window. |
C |
WindowPosition |
Rect |
RW |
Position and size of this chart given in the form of a 1-by-4 array consisting of the following: |
Editor |
ZoomFactor |
Double |
RW |
View magnification level (zoom factor) of this chart in the chart diagram editor. |
Editor |
![]() | Utility and Convenience Properties | Methods by Use | ![]() |