New to Telerik UI for WinFormsStart a free 30-day trial

Represents a manager for the RadSpreadsheetElement themes.

Definition

Namespace:Telerik.WinForms.Controls.Spreadsheet.Theming

Assembly:Telerik.WinControls.RadSpreadsheet.dll

Syntax:

C#
public class RadSpreadsheetThemesManager : IWeakEventListener

Inheritance: objectRadSpreadsheetThemesManager

Implements: IWeakEventListener

Properties

Gets the built-in color schemes.

C#
public NamedObjects<ThemeColorScheme> BuiltInColorSchemes { get; }
Property Value:

The built-in color schemes.

Gets the built-in font schemes.

C#
public NamedObjects<ThemeFontScheme> BuiltInFontSchemes { get; }
Property Value:

The built-in font schemes.

Gets or sets the current color scheme.

C#
public ThemeColorScheme CurrentColorScheme { get; set; }
Property Value:

The current color scheme.

Gets or sets the current font scheme.

C#
public ThemeFontScheme CurrentFontScheme { get; set; }
Property Value:

The current font scheme.

Gets or sets the current theme.

C#
public DocumentTheme CurrentTheme { get; set; }
Property Value:

The current theme.

Gets the custom color schemes.

C#
public NamedObjects<ThemeColorScheme> CustomColorSchemes { get; }
Property Value:

The custom color schemes.

Gets the custom font schemes.

C#
public NamedObjects<ThemeFontScheme> CustomFontSchemes { get; }
Property Value:

The custom font schemes.

Gets the themes.

C#
public NamedObjects<DocumentTheme> Themes { get; }
Property Value:

The themes.

Methods

Called when current theme is changed.

C#
protected virtual void OnCurrentThemeChanged()

Receives events from the centralized event manager.

C#
public bool ReceiveWeakEvent(Type managerType, object sender, EventArgs e)
Parameters:managerTypeType

The type of the WeakEventManager calling this method.

senderobject

Object that originated the event.

eEventArgs

Event data.

Returns:

bool

true if the listener handled the event. It is considered an error by the WeakEventManager handling in WPF to register a listener for an event that the listener does not handle. Regardless, the method should return false if it receives an event that it does not recognize or handle.

Implements: IWeakEventListener.ReceiveWeakEvent(Type, object, EventArgs)

Events

Occurs when current color scheme is changed.

C#
public event EventHandler CurrentColorSchemeChanged

Occurs when current font scheme is changed.

C#
public event EventHandler CurrentFontSchemeChanged

Occurs when current theme is changed.

C#
public event EventHandler CurrentThemeChanged