ExpressionEdit.FontSource
- Aktualisiert2025-07-21
- 2 Minute(n) Lesezeit
ExpressionEdit.FontSource
Syntax
ExpressionEdit.FontSource
Data Type
Use the following constants with this data type:
- FontSource_UseContainerFont –(Value: 2) The font the container supplies.
- FontSource_UseFontProperty –(Value: 0) A corresponding Font property of the control determines the font.
- FontSource_UseGUIFont –(Value: 1) The default system font for user interface objects.
- FontSource_UseIconFont –(Value: 5) The system font for an icon title.
- FontSource_UseInactiveTitlebarFont –(Value: 4) The system font for an inactive titlebar.
- FontSource_UseMenuFont –(Value: 6) The system font for a menu.
- FontSource_UseMessageBoxFont –(Value: 7) The system font for a message box.
- FontSource_UsePaletteTitleFont –(Value: 8) The system font for the title of a Tools window.
- FontSource_UseSelectedItemsFont –(Value: 9) The system font for the selected menu items.
- FontSource_UseSystemFixedWidthFont –(Value: 11) The system font for monospaced text.
- FontSource_UseTitlebarFont –(Value: 3) The system font for a title bar.
- FontSource_UseToolTipFont –(Value: 10) The system font for tooltips and status bars.
- FontSource_UseUIStyleFont –(Value: 12) The font the UIStyle object supplies.
Purpose
Specifies the current font for the ExpressionEdit control. The default value for this property is FontSource_UseGUIFont . When the value of this property is FontSource_UseFontProperty , the ExpressionEdit.Font property specifies the current font.
Remarks
Only the font name and size are used. All other properties of this parameter are ignored because the other properties are set on a per-text element basis in the Expression Editing Options dialog box, which you can access through the Options item from the context menu of the ExpressionEdit control.
When the value of this property is FontSource_UseFontProperty , the corresponding Font property specifies the particular font the control uses. Otherwise, the control uses the font from the source this property specifies. Refer to the FontSources enumeration for the list of valid font sources.
Set this property to a value other than FontSource_UseFontProperty when you expect the font the ExpressionEdit.Font property specifies to not be present on a computer at run time. For example, a font present on an English version of the Microsoft Windows operating system might not be present on a Japanese version of the Windows operating system.