TcxCustomFontNameComboBoxProperties.MRUFontNames Property
Provides access to items in the MRU font list.
Declaration
property MRUFontNames: TcxMRUFontNameItems read;
Property Value
Type |
---|
TcxMRUFontNameItems |
Remarks
The MRUFontNames property provides access to the collection of fonts within the MRU font list. The code below returns the name of the first font in the collection:
ASelectedFont := cxFontNameComboBox1.Properties.MRUFontNames.Items[0].FontName;
The MRU font list (or hot-pick area) is located at the top of the font name combo box but below the font preview (which may be disabled):
A font name is added to the MRU font list when a user selects a font within the combo box. If the font name already exists in the MRU list, then the selected name is placed at the top of the MRU list. The same happens when the MRU list is completely populated (the number of fonts within it has reached the MaxMRUFonts property value) and a user selects another font within the combo box.
Use the AddMRUFontName and DelMRUFontName methods to manage the MRU font list programmatically. Handle the OnAddedMRUFont and OnDeletedMRUFont events as required when adding/removing MRU fonts.