Stateflow User's Guide Previous page   Next Page

Font Properties

The following properties change the font used for text in a Stateflow chart.

Property
Return
Access
Description
Objects
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 TT
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
TransitionFont.
Angle
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


Previous page  Drawing Properties Position Properties Next page

© 1994-2005 The MathWorks, Inc.