Definition
Namespace:Telerik.WinControls.UI
Assembly:Telerik.WinControls.UI.dll
Syntax:
public class RadFontPopupEditorElement : RadPopupEditorElement, INotifyPropertyChanged, ICustomTypeDescriptor, ISupportSystemSkin, IBindableComponent, IComponent, IDisposable, ISupportDrag, ISupportDrop, IShortcutProvider, IStylableElement, IStylableNode, IInputEditor, IValueEditor, ISupportInitialize
Inheritance: objectDisposableObjectRadObjectRadElementVisualElementRadComponentElementRadItemRadEditorElementEditorBaseElementPopupEditorBaseElementRadPopupEditorElementRadFontPopupEditorElement...
Derived Classes:
Implements:
Inherited Members
Constructors
public RadFontPopupEditorElement()
Fields
protected bool isPopulating
Properties
Allows you to localize the text of the All Fonts group.
public string AllFontsItemText { get; set; }
Returns the underlying RadListView control.
public RadListView FontListView { get; }
Returns a list that contains all system fonts.
public List<string> FontNames { get; }
Gets the hovered font when the drop down is opened.
public string PreviewFont { get; }
Gets or sets the count of the items in the recently used fonts section.
public int RecentlyUsedItemsCount { get; set; }
Allows you to localize the text of the Recently Used Fonts group.
public string RecentlyUsedItemText { get; set; }
Gets or sets the Selected font name.
public string SelectedFont { get; set; }
Enable or disables the preview font functionality.
public bool SelectOnHover { get; set; }
Gets or sets the visibility of the Recently Used Fonts section.
public bool ShowRecentlyUsedFonts { get; set; }
Gets the effective theme type for this element.
protected override Type ThemeEffectiveType { get; }
Overrides:
Methods
By default the control loads the fonts according to the font families exposed by the InstalledFontCollection class. This method can be used to add other fonts, including such not installed on the machine.
public virtual void AddFont(FontFamily fontFamily)
The font to be added.
Adds a font according to the provided family name. The ThemeResolutionService class will be also checked for any loaded custom fonts matching the font name.
public virtual void AddFont(string fontFamilyName)
The font to be added.
Syncronizes the theme of the editor itself with the popup that is about to be displayed.
protected override void ApplyThemeToPopup(RadPopupControlBase popup)
Overrides:
Creates and configures the popup form control for the editor.
protected override RadPopupControlBase CreatePopupForm()
The configured RadPopupControlBase instance.
Overrides:
protected virtual void OnPreviewFontChanged(object sender, SelectedFontEventArgs e)
protected virtual void OnSelctedFontChanged(object sender, SelectedFontEventArgs e)
protected virtual void PopulateFonts()
Removes the specified font from the font collection used by the control.
public virtual void RemoveFont(FontFamily fontFamily)
The font to be removed.
Removes the font with the specified name from the font collection used by the control.
public virtual void RemoveFont(string fontFamilyName)
The family name of the font to be removed.
Events
Fires when the hovered font is changed.
public event SelectedFontEventHandler PreviewFontChanged
Fires when the selected font is changed.
public event SelectedFontEventHandler SelectedFontChanged