ClassRadFontPopupEditorElement
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
RadFontPopupEditorElement()
Declaration
public RadFontPopupEditorElement()
Fields
Properties
AllFontsItemText
Allows you to localize the text of the All Fonts group.
FontListView
Returns the underlying RadListView control.
FontNames
Returns a list that contains all system fonts.
PreviewFont
Gets the hovered font when the drop down is opened.
RecentlyUsedItemText
Allows you to localize the text of the Recently Used Fonts group.
Declaration
public string RecentlyUsedItemText { get; set; }
Property Value
RecentlyUsedItemsCount
Gets or sets the count of the items in the recently used fonts section.
SelectOnHover
Enable or disables the preview font functionality.
SelectedFont
Gets or sets the Selected font name.
ShowRecentlyUsedFonts
Gets or sets the visibility of the Recently Used Fonts section.
ThemeEffectiveType
Gets the effective theme type for this element.
Declaration
protected override Type ThemeEffectiveType { get; }
Property Value
Overrides
Methods
AddFont(FontFamily)
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.
Declaration
public virtual void AddFont(FontFamily fontFamily)
Parameters
fontFamily
The font to be added.
AddFont(string)
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.
Declaration
public virtual void AddFont(string fontFamilyName)
Parameters
fontFamilyName
The font to be added.
ApplyThemeToPopup(RadPopupControlBase)
Syncronizes the theme of the editor itself with the popup that is about to be displayed.
Declaration
protected override void ApplyThemeToPopup(RadPopupControlBase popup)
Parameters
popup
Overrides
CreatePopupForm()
Creates and configures the popup form control for the editor.
Declaration
protected override RadPopupControlBase CreatePopupForm()
Returns
The configured RadPopupControlBase instance.
Overrides
OnPreviewFontChanged(object, SelectedFontEventArgs)
Declaration
protected virtual void OnPreviewFontChanged(object sender, SelectedFontEventArgs e)
Parameters
sender
e
OnSelctedFontChanged(object, SelectedFontEventArgs)
Declaration
protected virtual void OnSelctedFontChanged(object sender, SelectedFontEventArgs e)
Parameters
sender
e
PopulateFonts()
Declaration
protected virtual void PopulateFonts()
RemoveFont(FontFamily)
Removes the specified font from the font collection used by the control.
Declaration
public virtual void RemoveFont(FontFamily fontFamily)
Parameters
fontFamily
The font to be removed.
RemoveFont(string)
Removes the font with the specified name from the font collection used by the control.
Declaration
public virtual void RemoveFont(string fontFamilyName)
Parameters
fontFamilyName
The family name of the font to be removed.
UpdateRecentlyUsedFonts(string[], bool)
Allows you to manully update the recently used fonts list.
Events
PreviewFontChanged
Fires when the hovered font is changed.
Declaration
public event SelectedFontEventHandler PreviewFontChanged
Event Value
SelectedFontChanged
Fires when the selected font is changed.
Declaration
public event SelectedFontEventHandler SelectedFontChanged
Event Value