TdxChildFontOptions Class
Stores font settings with element hierarchy management options.
Declaration
TdxChildFontOptions = class abstract(TdxFontOptions)
Remarks
The TdxChildFontOptions
class implements font settings that allow you to manage font appearance at different levels of visual element hierarchy.
The TdxChildFontOptions
class introduces the AssignedValues property that allows you to track font setting changes at the current hierarchy level and reset individual font settings. If a flag is present in the AssignedValues property value, the corresponding font setting is in effect at the current hierarchy level. Otherwise, the current visual element inherits the corresponding font setting from its parent.
Note
Certain visual elements may use different algorithms to determine default font settings when corresponding assigned values are not set. For example, the Chart control’s visual elements multiply the parent element’s font size by a scale factor if the TdxFontOptionsValue.Size flag is not present in the AssignedValues property value. The scale factor depends on the target visual element type.
Main API Members
The list below outlines key members of the TdxChildFontOptions
class that allow you to change text appearance in visual elements.
- Apply different font attributes (Bold, Italic, StrikeOut, Underline, and Style).
- Specify what visual element font settings override corresponding font settings of the parent visual element (AssignedValues).
- Change font typeface (Name).
- Adjust font size (Size).
- Avoid excessive redraw operations during batch font setting changes (BeginUpdate, CancelUpdate, and EndUpdate).
- Copy font settings between visual Chart elements (Assign).
Terminal TdxChildFontOptions Class Descendant
Do not use the TdxChildFontOptions
class directly. Use the TdxChartVisualElementFontOptions class instead.