Displays built-in and custom font schemes; selection is applied by the theme manager, while creation and editing open dialogs.
Definition
Namespace:Telerik.WinForms.Controls.Spreadsheet.Controls
Assembly:Telerik.WinControls.RadSpreadsheet.dll
Syntax:
public class ThemeFontDropDownButtonElement : RadDropDownButtonElement, INotifyPropertyChanged, ICustomTypeDescriptor, ISupportSystemSkin, IBindableComponent, IComponent, IDisposable, ISupportDrag, ISupportDrop, IShortcutProvider, IStylableElement, IStylableNode, IDropDownMenuOwner, ISiteProvider, IItemsOwner, IImageElement
Inheritance: objectDisposableObjectRadObjectRadElementVisualElementRadComponentElementRadItemRadDropDownButtonElementThemeFontDropDownButtonElement...
Implements:
Inherited Members
Constructors
Adds the scheme list, a separator, and the create-new action to the drop-down menu.
public ThemeFontDropDownButtonElement()
Properties
BuiltInItems
NamedObjects<ThemeFontScheme>
Gets the built in items.
protected NamedObjects<ThemeFontScheme> BuiltInItems { get; }
The built in items.
Gets the message to confirm delete.
protected string ConfirmDeleteMessage { get; }
The message to confirm delete.
CurrentItem
ThemeFontScheme
Gets or sets the current item.
protected ThemeFontScheme CurrentItem { get; set; }
The current item.
CustomItems
NamedObjects<ThemeFontScheme>
Gets the custom items.
protected NamedObjects<ThemeFontScheme> CustomItems { get; }
The custom items.
Gets or sets the spreadsheet element.
public RadSpreadsheetElement SpreadsheetElement { get; set; }
The spreadsheet element.
Uses the base drop-down button type for theme lookup while this element supplies the theme gallery.
protected override Type ThemeEffectiveType { get; }
Overrides:
Methods
Creates the grouped scheme list, its custom visual items, and the create-new menu item.
protected override void CreateChildElements()
Overrides:
Creates the list-view menu item that hosts theme-font schemes in the popup.
protected virtual ListViewMenuItem CreateListViewItem()
The menu item containing the theme-font scheme list.
Keeps the popup open when a mouse close is caused by clicking the scheme list's scrollbar.
protected override void OnDropDownClosing(RadPopupClosingEventArgs args)
The pending popup-close event data.
Overrides:
Closes the gallery and opens the edit dialog for the specified theme-font scheme.
protected virtual void ShowEditItemDialog(ThemeFontScheme contentItem)
The theme-font scheme to edit.